summaryrefslogtreecommitdiff
path: root/drivers/iio/gyro
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2021-06-13 16:10:37 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-10-19 08:29:22 +0100
commitcbe5c6977604116db11ae6d60fd1f62beefa2a57 (patch)
tree64a76d405527b9b36b768fc82f35a7a1bc36e052 /drivers/iio/gyro
parent95ec3fdf2b79eaff79e78688bbc2f7dbb98d68b6 (diff)
iio: adc: ti-adc108s102: Fix alignment of buffer pushed to iio buffers.
Use the newly introduce iio_push_to_buffers_with_ts_unaligned() function to ensure a bounce buffer is used to provide the required alignment and space padding needed by the IIO core which requires the timestamp is naturally aligned. There will be a performance cost to this change but it will ensure the driver works on platforms that do not support unaligned 8 byte assignments, and with consumer drivers that may assume natural alignment of the timestamp. Issue found as part of an audit of all calls to iio_push_to_buffers_with_timestamp() Fixes: 7e87d11c9bda ("iio: adc: Add support for TI ADC108S102 and ADC128S102") Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Cc: Jan Kiszka <jan.kiszka@siemens.com> Link: https://lore.kernel.org/r/20210613151039.569883-3-jic23@kernel.org
Diffstat (limited to 'drivers/iio/gyro')
0 files changed, 0 insertions, 0 deletions