Re: [PATCH v4 4/9] iio: imu: st_lsm6dsx: rework code to check for enabled events

From: Jonathan Cameron

Date: Sun Dec 07 2025 - 10:27:54 EST


On Mon, 1 Dec 2025 11:00:13 +0100
Francesco Lavra <flavra@xxxxxxxxxxxx> wrote:

> The enable_event field in struct st_lsm6dsx_hw does not lend itself well to
> handling multiple event sources, so it will have to be modified to add
> support for more event sources. As a preparatory step, remove references to
> this field from code that does not deal with event management; rework the
> st_lsm6dsx_check_events() function so that it returns whether any events
> are currently enabled on a given sensor.
>
> Signed-off-by: Francesco Lavra <flavra@xxxxxxxxxxxx>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
Applied.

Note that if anyone else has more comments or wants to add tags
I'm fine rebasing as appropriate until sometime after rc1 when
I push out as togreg and linux-next picks it up.

Thanks,

Jonathan