summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2026-02-14 16:33:54 -0600
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-03-01 12:25:43 +0000
commit773ef9f95385bae52dcb7fd129fefba3a71a04db (patch)
tree6547fddfc841af336299f547525303b2a0c88d81 /tools/perf/scripts/python/task-analyzer.py
parentc47ac75f5f24020cc0c8b835457a7637ad450939 (diff)
iio: imu: bno055: fix BNO055_SCAN_CH_COUNT off by one
Fix an off-by-one error in the BNO055_SCAN_CH_COUNT macro. The count is derived by taking the difference of the last and first register addresses, dividing by the size of each channel (2 bytes). It needs to also add 1 to account for the fact that the count is inclusive of both the first and last channels. Thanks to the aligned_s64 timestamp field, there was already extra padding in the buffer, so there were no runtime issues caused by this bug. Fixes: 4aefe1c2bd0c ("iio: imu: add Bosch Sensortec BNO055 core driver") Signed-off-by: David Lechner <dlechner@baylibre.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions