OpenCloudOS-Kernel/drivers/iio/accel
Martin Fuzzey 71702e6e52 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 <mfuzzey@parkeon.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Cc: stable@vger.kernel.org
2014-07-12 13:18:55 +01:00
..
Kconfig iio: Add Freescale MMA8452Q 3-axis accelerometer driver 2014-05-03 12:06:25 +01:00
Makefile iio: Add Freescale MMA8452Q 3-axis accelerometer driver 2014-05-03 12:06:25 +01:00
bma180.c iio:accel:bma180: Make LOW_PASS_FILTER_3DB_FREQUENCY shared_by_type 2014-02-15 11:05:02 +00:00
hid-sensor-accel-3d.c iio: hid-sensor-accel-3d: Fix return values 2014-07-05 11:04:48 +01:00
kxsd9.c iio:accel:kxsd9 fix missing mutex unlock 2013-11-17 15:22:00 +00:00
mma8452.c iio: mma8452: Use correct acceleration units. 2014-07-12 13:18:55 +01:00
st_accel.h iio: Added ST-sensors platform data to select the DRDY interrupt pin 2013-08-03 18:40:28 +01:00
st_accel_buffer.c iio:st_accel: Drop redundant call to iio_sw_buffer_preenable() 2013-10-16 19:11:11 +01:00
st_accel_core.c iio: st_sensors: move regulator retrieveal to core 2014-04-26 11:52:42 +01:00
st_accel_i2c.c iio: accel: st_accel: Use devm_iio_device_alloc 2013-08-03 18:41:18 +01:00
st_accel_spi.c iio: accel: st_accel: Use devm_iio_device_alloc 2013-08-03 18:41:18 +01:00