Re: [PATCH v8 06/10] iio: core: add an accessor for scan_timestamp

From: Jonathan Cameron

Date: Sun Sep 27 2026 - 15:22:47 EST


On Mon, 21 Sep 2026 21:31:28 +0300
Rupesh Majhi <zoone.rupert@xxxxxxxxx> wrote:

> indio_dev->scan_timestamp is __private, so a driver has no way to ask
> whether the timestamp channel is in the current scan. Hide the
> ACCESS_PRIVATE() behind a read-only helper, the way iio_get_masklength()
> already does.
>
> The dps310 FIFO patch later in this series is the first user: that
> hardware does not timestamp entries, so it refuses a buffer with the
> timestamp channel enabled.
>
> Suggested-by: Jonathan Cameron <jic23@xxxxxxxxxx>
> Assisted-by: LLM
> Signed-off-by: Rupesh Majhi <zoone.rupert@xxxxxxxxx>
Applied.

Thanks,