diff options
| author | Stephan Gerhold <[email protected]> | 2021-06-11 10:08:54 +0200 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-06-13 17:00:17 +0100 |
| commit | 6e2a90af0b8d757e850cc023d761ee9a9492e2fe (patch) | |
| tree | 3462ab1a483a764e55867c96c3b7fc8b45028517 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 94588c1bf1c8701392e1dc105c670d0d2fc7676a (diff) | |
iio: accel: bmc150: Fix bma222 scale unit
According to sysfs-bus-iio documentation the unit for accelerometer
values after applying scale/offset should be m/s^2, not g, which explains
why the scale values for the other variants in bmc150-accel do not match
exactly the values given in the datasheet.
To get the correct values, we need to multiply the BMA222 scale values
by g = 9.80665 m/s^2.
Fixes: a1a210bf29a1 ("iio: accel: bmc150-accel: Add support for BMA222")
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Stephan Gerhold <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions