summaryrefslogtreecommitdiff
path: root/drivers/iio/accel/hid-sensor-accel-3d.c
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2021-05-01 18:01:04 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-05-17 13:54:28 +0100
commit151dbf0078da98206817ee0b87d499035479ef11 (patch)
tree5dfd35af85107bfb1d2ce1e99000f78a8170cbca /drivers/iio/accel/hid-sensor-accel-3d.c
parentfc36da3131a747a9367a05caf06de19be1bcc972 (diff)
iio: accel: bma220: 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: 194dc4c71413 ("iio: accel: Add triggered buffer support for BMA220") 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-3-jic23@kernel.org
Diffstat (limited to 'drivers/iio/accel/hid-sensor-accel-3d.c')
0 files changed, 0 insertions, 0 deletions