iio: adc: ad7768-1: Fix too small buffer passed to iio_push_to_buffers_with_timestamp()
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 1 May 2021 16:53:13 +0000 (17:53 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 22 May 2021 07:32:36 +0000 (08:32 +0100)
commita1caeebab07e9d72eec534489f47964782b93ba9
tree69442855425f659b6acf45e45870a64ba230b342
parent98b7b0ca0828907dbb706387c11356a45463e2ea
iio: adc: ad7768-1: Fix too small buffer passed to iio_push_to_buffers_with_timestamp()

Add space for the timestamp to be inserted.  Also ensure correct
alignment for passing to iio_push_to_buffers_with_timestamp()

Fixes: a5f8c7da3dbe ("iio: adc: Add AD7768-1 ADC basic support")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210501165314.511954-2-jic23@kernel.org
Cc: <Stable@vger.kernel.org>
drivers/iio/adc/ad7768-1.c