From: Martin Fuzzey Date: Fri, 7 Nov 2014 13:54:00 +0000 (+0000) Subject: iio: mma8452: Use correct acceleration units. X-Git-Tag: omap-for-v3.17/fixes-against-rc2~254^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71702e6e52c8312f4c6797a9787d0f8b5656156f;p=pandora-kernel.git iio: mma8452: Use 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 value for the mma8452 (-2048) corresponds to -2G, -4G or -8G depending on the seleted mode. The scale table was converting to G rather than m/s^2. Change the scaling table to match the documented interface. Signed-off-by: Martin Fuzzey Signed-off-by: Jonathan Cameron Cc: stable@vger.kernel.org --- Reading git-diff-tree failed