[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdbrh5WX6whZYXbN44HDY1S-ztCHy3E_6X4oDfvMALwWyA@mail.gmail.com>
Date: Sat, 28 Aug 2021 00:29:30 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Alexandru Ardelean <aardelean@...iqon.com>
Cc: linux-iio <linux-iio@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
Denis CIOCCA <denis.ciocca@...com>,
Jonathan Cameron <jic23@...nel.org>,
Lee Jones <lee.jones@...aro.org>,
Andy Shevchenko <andy.shevchenko@...il.com>
Subject: Re: [PATCH v3 2/5] iio: st_sensors: remove st_sensors_deallocate_trigger()
function
On Mon, Aug 23, 2021 at 1:22 PM Alexandru Ardelean
<aardelean@...iqon.com> wrote:
> This change converts the st_sensors_allocate_trigger() to use
> device-managed functions.
>
> The parent device of the IIO device object is used. This is based on the
> assumption that all other devm_ calls in the ST sensors use this reference.
>
> That makes the st_sensors_deallocate_trigger() function un-needed, so it
> can be removed.
>
> Reviewed-by: Andy Shevchenko <andy.shevchenko@...il.com>
> Signed-off-by: Alexandru Ardelean <aardelean@...iqon.com>
Nice!
Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
Yours,
Linus Walleij
Powered by blists - more mailing lists