]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: buffer: cache timestamp offset in scan buffer
authorDavid Lechner <dlechner@baylibre.com>
Sun, 8 Mar 2026 01:44:11 +0000 (19:44 -0600)
committerJonathan Cameron <jic23@kernel.org>
Mon, 27 Apr 2026 08:58:15 +0000 (09:58 +0100)
commitcb27d8c18fa311ad87fca4c2e7f1d73ec0cb440d
tree6fcf5c69a6687a499f1c6cacec39c9593ccd47a4
parent78abd04ea19608dc8a025ba5b95cd21c5a86d3e6
iio: buffer: cache timestamp offset in scan buffer

Cache the offset (in bytes) for the timestamp element in a scan buffer.
This will be used later to ensure proper alignment of the timestamp
element in the scan buffer.

The new field could not be placed in struct iio_dev_opaque because we
will need to access it in a static inline function later, so we make it
__private instead. It is only intended to be used by core IIO code.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-buffer.c
include/linux/iio/iio.h