Re: [PATCH 10/14] iio: chemical: scd30: poll own trigger from interrupt handler

From: Maxwell Doose

Date: Sat Dec 05 2026 - 16:11:16 EST


On Sun Nov 8, 2026 at 9:52 PM CST
Jonathan Cameron <jic23@xxxxxxxxxx> wrote:

> From: Jonathan Cameron <jonathan.cameron@xxxxxxxxxxxxxxxx>
>
> Keep a pointer to the driver's trigger in struct scd30_state and poll
> that from scd30_irq_handler() rather than indio_dev->trig. With the
> buffer enabled, the interrupt is only enabled by the trigger's
> set_trigger_state() callback, so it is the driver's own trigger that is
> in use.
>
> This removes a dependency on the trig field of struct iio_dev, which
> is to become private to the IIO core.
>
> Signed-off-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxxxxxxxx>
> ---
> drivers/iio/chemical/scd30.h | 2 ++
> drivers/iio/chemical/scd30_core.c | 4 +++-
> 2 files changed, 5 insertions(+), 1 deletion(-)
>

Not sure how this got buried in my email. Sorry!

Acked-by: Maxwell Doose <maxwell@xxxxxxxxxxx>

Thanks,
Max