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)
commit61fa5dfa5f52806f5ce37a0ba5712c271eb22f98
tree4552c5aed50d3c9ad9d9969b1ec0f6b113cb2df8
parent6a6be221b8bd561b053f0701ec752a5ed9007f69
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: f214ff521fb1 ("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