]> www.infradead.org Git - users/hch/misc.git/commit
iio: adc: ad7606: explicit timestamp alignment
authorDavid Lechner <dlechner@baylibre.com>
Tue, 29 Apr 2025 02:17:14 +0000 (21:17 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 5 May 2025 15:13:26 +0000 (16:13 +0100)
commitda7c98cd86d1a6ac14b1e69520b7222a1524ba8c
tree16e4320bda2aa703127b583fa952af5cdaf47407
parente828802059496d96e15a9e2adc7bc7cb0bcae0f8
iio: adc: ad7606: explicit timestamp alignment

Use struct with aligned_s64 timestamp to make timestamp alignment
explicit. Technically, what we have works because for all known
architectures, IIO_DMA_MINALIGN is a multiple of __alignof__(s64).
But this way, we don't have to make people read the comments to know
why there are extra elements in each buffer.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250428-iio-adc-ad7606-fix-buffer-alignment-v1-1-88dfc57e5df0@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7606.h