summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/ad_sigma_delta.c
diff options
context:
space:
mode:
authorPeter Meerwald <pmeerw@pmeerw.net>2014-07-16 19:32:00 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-08-07 14:52:37 -0700
commitef5f195b851064b51c81c45ff981bec504eefafa (patch)
tree589fc213929b6d417ab83db123eec8e8c6af3d44 /drivers/iio/adc/ad_sigma_delta.c
parentf7934771a2cf7b7d0042a61154f65244a8aa49a5 (diff)
iio:bma180: Fix scale factors to report correct acceleration units
commit 381676d5e86596b11e22a62f196e192df6091373 upstream. The userspace interface for acceleration sensors is documented as using m/s^2 units [Documentation/ABI/testing/sysfs-bus-iio] The fullscale raw values for the BMA80 corresponds to -/+ 1, 1.5, 2, etc G depending on the selected mode. The scale table was converting to G rather than m/s^2. Change the scaling table to match the documented interface. See commit 71702e6e, iio: mma8452: Use correct acceleration units, for a related fix. Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net> Cc: Oleksandr Kravchenko <o.v.kravchenko@globallogic.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/adc/ad_sigma_delta.c')
0 files changed, 0 insertions, 0 deletions