original_kernel/drivers/iio/accel
Linus Walleij 307fe9dd11 iio: accel: kxsd9: Fix scaling bug
All the scaling of the KXSD9 involves multiplication with a
fraction number < 1.

However the scaling value returned from IIO_INFO_SCALE was
unpredictable as only the micros of the value was assigned, and
not the integer part, resulting in scaling like this:

$cat in_accel_scale
-1057462640.011978

Fix this by assigning zero to the integer part.

Cc: stable@vger.kernel.org
Tested-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-09-03 18:30:45 +01:00
..
Kconfig iio: add Kconfig selects needed for triggered buffer compiles 2016-08-15 15:42:04 +01:00
Makefile
bma180.c iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
bma220_spi.c iio: accel: bma220_spi: set up buffer timestamps for non-zero values 2016-08-15 15:39:18 +01:00
bmc150-accel-core.c iio: accel: bmc150: reset chip at init time 2016-09-03 17:26:14 +01:00
bmc150-accel-i2c.c
bmc150-accel-spi.c
bmc150-accel.h
hid-sensor-accel-3d.c
kxcjk-1013.c iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
kxsd9.c iio: accel: kxsd9: Fix scaling bug 2016-09-03 18:30:45 +01:00
mma7455.h
mma7455_core.c iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
mma7455_i2c.c
mma7455_spi.c
mma7660.c
mma8452.c drivers:iio:accel:mma8452: removed unwanted return statements 2016-07-05 21:05:01 +01:00
mma9551.c iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
mma9551_core.c
mma9551_core.h
mma9553.c iio:core: timestamping clock selection support 2016-06-30 19:41:38 +01:00
mxc4005.c
mxc6255.c
ssp_accel_sensor.c
st_accel.h iio: accel: st_accel: Add lis3l02dq support 2016-07-04 18:07:44 +01:00
st_accel_buffer.c
st_accel_core.c iio: accel: st_accel: Add lis3l02dq support 2016-07-04 18:07:44 +01:00
st_accel_i2c.c iio: accel: st_accel: Add lis3l02dq support 2016-07-04 18:07:44 +01:00
st_accel_spi.c iio: accel: st_accel: Add lis3l02dq support 2016-07-04 18:07:44 +01:00
stk8ba50.c
stk8312.c