summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2021-06-13 18:10:38 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-10-19 10:29:22 +0300
commitb5ca2046c6d481128f1fc5202ffffea0bbf70a45 (patch)
treec08ba8d3e796fc9fe59675b8f9b6c92a89f36332 /tools/perf/scripts/python
parentcbe5c6977604116db11ae6d60fd1f62beefa2a57 (diff)
downloadlinux-b5ca2046c6d481128f1fc5202ffffea0bbf70a45.tar.xz
iio: gyro: mpu3050: Fix alignment and size issues with buffers.
Fix a set of closely related issues. 1. When using fifo_values() there was not enough space for the timestamp to be inserted by iio_push_to_buffers_with_timestamp() 2. fifo_values() did not meet the alignment requirement of iio_push_to_buffers_with_timestamp() 3. hw_values did not meet the alignment requirement either. 1 and 2 fixed by using new iio_push_to_buffers_with_ts_unaligned() which has no alignment or space padding requirements. 3 fixed by introducing a structure that makes the space and alignment requirements explicit. Fixes: 3904b28efb2c ("iio: gyro: Add driver for the MPU-3050 gyroscope") Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20210613151039.569883-4-jic23@kernel.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions