iio: accel: stk8ba50: Fix buffer alignment in iio_push_to_buffers_with_timestamp()
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 1 May 2021 17:01:09 +0000 (18:01 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 May 2021 12:54:28 +0000 (13:54 +0100)
commit334883894bc1e145a1e0f5de1b0d1b6a1133f0e6
tree4e9eb6a060a80c75fa38202effebb3bcd1c9a773
parentf40a71ffec808e7e51848f63f0c0d3c32d65081b
iio: accel: stk8ba50: 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.

Found during an audit of all calls of this function.

Fixes: db6a19b8251f ("iio: accel: Add trigger support for STK8BA50")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210501170121.512209-8-jic23@kernel.org
drivers/iio/accel/stk8ba50.c