Re: [PATCH v3 2/5] iio: st_sensors: remove st_sensors_deallocate_trigger() function

From: Linus Walleij
Date: Fri Aug 27 2021 - 18:29:45 EST


On Mon, Aug 23, 2021 at 1:22 PM Alexandru Ardelean
<aardelean@xxxxxxxxxxx> 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@xxxxxxxxx>
> Signed-off-by: Alexandru Ardelean <aardelean@xxxxxxxxxxx>

Nice!
Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij