summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/axp20x_adc.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2021-06-13 16:22:56 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-06-14 11:42:41 +0100
commit6a6be221b8bd561b053f0701ec752a5ed9007f69 (patch)
tree4d9fb82e9b0aa905b47f4f3b265a0974ac850986 /drivers/iio/adc/axp20x_adc.c
parentafe2a789fbf7acd1a05407fc7839cc08d23825e3 (diff)
iio: adc: mxs-lradc: Fix buffer alignment in iio_push_to_buffers_with_timestamp()
To make code more readable, use a structure to express the channel layout and ensure the timestamp is 8 byte aligned. Add a comment on why the buffer is the size it is as not immediately obvious. Found during an audit of all calls of this function. Fixes: 6dd112b9f85e ("iio: adc: mxs-lradc: Add support for ADC driver") Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Cc: Andreas Klinger <ak@it-klinger.de> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20210613152301.571002-4-jic23@kernel.org
Diffstat (limited to 'drivers/iio/adc/axp20x_adc.c')
0 files changed, 0 insertions, 0 deletions