]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: ti-ads8688: Fix alignment of buffer in iio_push_to_buffers_with_timestamp()
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Jun 2021 15:22:57 +0000 (16:22 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 14 Jun 2021 10:42:41 +0000 (11:42 +0100)
commitdccb9cd4ef1ebd9c1c0791431f39277ada7b5663
tree4552c5aed50d3c9ad9d9969b1ec0f6b113cb2df8
parent5d9457d93108f2d65ffede3b7bd85c29e04f6695
iio: adc: ti-ads8688: Fix alignment of buffer in iio_push_to_buffers_with_timestamp()

Add __aligned(8) to ensure the buffer passed to
iio_push_to_buffers_with_timestamp() is suitable for the naturally
aligned timestamp that will be inserted.

Fixes: 74d7ec0fa77f ("iio: ti-ads8688: Update buffer allocation for timestamps")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20210613152301.571002-5-jic23@kernel.org
drivers/iio/adc/ti-ads8688.c