]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: adc: ti-ads7950: use iio_push_to_buffers_with_ts_unaligned()
authorDavid Lechner <dlechner@baylibre.com>
Sat, 14 Mar 2026 21:12:24 +0000 (16:12 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Mar 2026 21:03:36 +0000 (21:03 +0000)
commit7806c060cceb2d6895efbb6cff2f2f17cf1ec5de
tree49883c8698b3dc62bb8241a6b7312b67ee3fed12
parent1ac30f58f0336287203109872f71a81d4bb271db
iio: adc: ti-ads7950: use iio_push_to_buffers_with_ts_unaligned()

Use iio_push_to_buffers_with_ts_unaligned() to avoid unaligned access
when writing the timestamp in the rx_buf.

The previous implementation would have been fine on architectures that
support 4-byte alignment of 64-bit integers but could cause issues on
architectures that require 8-byte alignment.

Fixes: 902c4b2446d4 ("iio: adc: New driver for TI ADS7950 chips")
Signed-off-by: David Lechner <dlechner@baylibre.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-ads7950.c