Re: [PATCH] iio: accel: kionix-kx022a: use iio_push_to_buffers_with_ts()

From: Gabriel Rondon

Date: Tue Aug 18 2026 - 17:53:28 EST


On Tue, 18 Aug 2026 17:16:57 +0100
Jonathan Cameron <jic23@xxxxxxxxxx> wrote:

> Why do we have both scan and buffer? The kx022a_trigger_handler()
> could just as easily use scan (which is the cleaner solution here)
>
> That leaves get_axis which uses st->buffer as well. Whilst it is a little
> ugly, that can just use the first channel of scan as well.
>
> If you are happy to do so could you make that change as a precursor
> to this set?

Happy to. v2 splits it into a precursor that drops buffer and routes
both the one-shot read and the triggered handler through scan (moving
the IIO_DMA_MINALIGN alignment onto scan), then the conversion on top.

Thanks,
Gabriel