307fe9dd11
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> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
bma180.c | ||
bma220_spi.c | ||
bmc150-accel-core.c | ||
bmc150-accel-i2c.c | ||
bmc150-accel-spi.c | ||
bmc150-accel.h | ||
hid-sensor-accel-3d.c | ||
kxcjk-1013.c | ||
kxsd9.c | ||
mma7455.h | ||
mma7455_core.c | ||
mma7455_i2c.c | ||
mma7455_spi.c | ||
mma7660.c | ||
mma8452.c | ||
mma9551.c | ||
mma9551_core.c | ||
mma9551_core.h | ||
mma9553.c | ||
mxc4005.c | ||
mxc6255.c | ||
ssp_accel_sensor.c | ||
st_accel.h | ||
st_accel_buffer.c | ||
st_accel_core.c | ||
st_accel_i2c.c | ||
st_accel_spi.c | ||
stk8ba50.c | ||
stk8312.c |