linux/drivers/iio
Linus Walleij a2b268541d iio: accel: kxsd9: Fix scaling bug
[ Upstream commit 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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
History 2016-10-05 22:40:20 -04:00
..
accel iio: accel: kxsd9: Fix scaling bug 2016-10-05 22:40:20 -04:00
adc iio: adc: twl6030-gpadc: Fix modalias 2015-08-27 13:25:55 -04:00
amplifiers iio: amplifiers: ad8366: Remove regulator_put 2013-09-28 11:49:45 +01:00
common iio: st_sensors: Fix buffer copy 2014-11-05 18:33:43 +00:00
dac iio: dac: mcp4725: set iio name property in sysfs 2016-04-12 17:06:23 -04:00
frequency Merge 3.12-rc6 into staging-next. 2013-10-19 13:14:34 -07:00
gyro Revert "iio: bmg160: IIO_BUFFER and IIO_TRIGGERED_BUFFER are required" 2015-10-27 22:14:56 -04:00
humidity iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
imu iio: adis_buffer: Fix out-of-bounds memory access 2016-04-12 17:06:23 -04:00
light iio: light: hid-sensor-als.c: Fix memory leak in probe() 2015-08-27 13:26:02 -04:00
magnetometer iio: ak8975: Fix NULL pointer exception on early interrupt 2016-05-17 14:31:35 -04:00
orientation iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
pressure iio: pressure: mpl115: fix temperature offset sign 2016-04-12 17:06:24 -04:00
proximity iio: as3935: allocate correct iio_device size 2014-11-05 18:33:46 +00:00
temperature iio: tmp006: Check channel info on write 2015-08-04 14:16:31 -04:00
trigger iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
buffer_cb.c iio get rid of unneccessary error_ret 2014-02-18 08:46:36 +00:00
iio_core.h IIO: core: Introduce read_raw_multi 2014-04-29 22:05:32 +01:00
iio_core_trigger.h iio: fix semicolon in io_core_trigger.h 2013-08-03 18:40:32 +01:00
industrialio-buffer.c iio: industrialio-buffer: Fix iio_buffer_poll return value 2015-10-27 22:14:35 -04:00
industrialio-core.c iio: core: Fix double free. 2015-04-24 17:13:50 -04:00
industrialio-event.c iio: event: Remove negative error code from iio_event_poll 2015-10-27 22:14:34 -04:00
industrialio-trigger.c iio: Remove timestamp argument from iio_trigger_poll() and iio_trigger_poll_chained() 2014-06-14 16:25:59 +01:00
industrialio-triggered-buffer.c iio:triggered-buffer: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:12:47 +01:00
inkern.c iio:inkern: fix overwritten -EPROBE_DEFER in of_iio_channel_get_by_name 2014-08-25 16:55:28 +01:00
Kconfig iio: always select ANON_INODES 2014-05-10 11:39:57 +01:00
kfifo_buf.c iio: kfifo_buf: Implement data_available() callback 2013-12-03 20:22:28 +00:00
Makefile iio: Add AS3935 lightning sensor support 2014-03-16 18:00:32 +00:00