From: Peter Meerwald Date: Wed, 16 Jul 2014 18:32:00 +0000 (+0100) Subject: iio:bma180: Fix scale factors to report correct acceleration units X-Git-Tag: omap-for-v3.17/fixes-against-rc2~202^2~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=381676d5e86596b11e22a62f196e192df6091373;p=pandora-kernel.git iio:bma180: Fix scale factors to report correct acceleration units 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 Cc: Oleksandr Kravchenko Signed-off-by: Jonathan Cameron Cc: Stable@vger.kernel.org --- Reading git-diff-tree failed