]> www.infradead.org Git - users/willy/xarray.git/commit
iio: adc: dln2: Use aligned_s64 for timestamp
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Apr 2025 10:34:26 +0000 (11:34 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 18 Apr 2025 15:07:29 +0000 (16:07 +0100)
commit5097eaae98e53f9ab9d35801c70da819b92ca907
tree1dcecdaef8b5ab729c14ba690945334254244957
parent1bb942287e05dc4c304a003ea85e6dd9a5e7db39
iio: adc: dln2: Use aligned_s64 for timestamp

Here the lack of marking allows the overall structure to not be
sufficiently aligned resulting in misplacement of the timestamp
in iio_push_to_buffers_with_timestamp(). Use aligned_s64 to
force the alignment on all architectures.

Fixes: 7c0299e879dd ("iio: adc: Add support for DLN2 ADC")
Reported-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250413103443.2420727-4-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/dln2-adc.c