linux/drivers/staging/iio
Sascha Hauer 1764eff7d5 staging iio adt7410: fix 13bit mode
The driver assumes that in 13bit mode the 16bit value has
to be shifted to the right by 3 bits. This is not true, in
both 16bit and 13bit mode the MSB is at the same position.
Currently the driver returns a temperature of 194 degrees
Celsius in 13bit mode and 24 degrees Celsius in 16bit mode.
Fix this by using the same algorithm for 16bit and 13bit
mode and by just masking out the lower three bits in 13bit
mode.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2012-07-08 20:02:25 +01:00
..
accel staging:iio: Request threaded-only IRQs with IRQF_ONESHOT 2012-07-08 20:02:24 +01:00
adc staging iio adt7410: fix 13bit mode 2012-07-08 20:02:25 +01:00
addac staging:iio:addac: Use dev_to_iio_dev() 2012-05-14 13:39:20 -07:00
cdc staging:iio: Request threaded-only IRQs with IRQF_ONESHOT 2012-07-08 20:02:24 +01:00
Documentation Merge branch 'fixes-togreg' into togreg 2012-06-30 10:14:29 +01:00
frequency staging:iio:frequency: Use dev_to_iio_dev() 2012-05-14 13:39:21 -07:00
gyro staging:iio:gyro:adis16260 drop sysfs interface for manual device reset. 2012-06-30 10:15:17 +01:00
impedance-analyzer staging:iio:impedance-analyzer: Use dev_to_iio_dev() 2012-05-14 13:39:21 -07:00
imu staging:iio:imu:adis16400 drop sysfs interface for manual device reset. 2012-06-30 10:15:20 +01:00
light iio staging: fix spelling of suppression in isl29018 2012-06-18 17:29:29 -07:00
magnetometer staging:iio:magnetometer:ak8975: remove 'mode' attribute 2012-06-07 14:32:59 +09:00
meter staging:iio:meter: Use dev_to_iio_dev() 2012-05-14 13:39:22 -07:00
resolver staging:iio:resolver: Use dev_to_iio_dev() 2012-05-14 13:39:22 -07:00
trigger staging:iio:trigger: Use to_iio_trigger() instead of dev_get_drvdata() 2012-06-22 21:08:10 -07:00
iio_dummy_evgen.c IIO: Move core headers to include/linux/iio 2012-04-25 11:01:43 -07:00
iio_dummy_evgen.h staging:iio:dummy Add event support + fake event generator 2011-10-17 15:36:30 -07:00
iio_hwmon.c iio: Rename _st_ functions to loose the bit that meant the staging version. 2012-06-30 10:15:12 +01:00
iio_simple_dummy.c staging: iio: fix typos in simple dummy driver 2012-06-15 14:36:26 -07:00
iio_simple_dummy.h staging:iio:dummy Add buffered reading support 2011-10-17 15:36:30 -07:00
iio_simple_dummy_buffer.c staging: iio: fix typo, improve timestamp alignment comment 2012-06-22 21:24:27 -07:00
iio_simple_dummy_events.c staging: iio: Fix typo in iio 2012-05-08 16:04:12 -07:00
Kconfig staging:iio: Move DAC drivers out of staging 2012-06-05 14:02:25 +09:00
Makefile staging:iio: Move DAC drivers out of staging 2012-06-05 14:02:25 +09:00
ring_hw.h staging:iio: replacing term ring with buffer in the IIO core. 2011-09-26 17:31:53 -07:00
ring_sw.c staging: iio:: fix some typos 2012-06-15 14:39:18 -07:00
ring_sw.h IIO: Move core headers to include/linux/iio 2012-04-25 11:01:43 -07:00
TODO staging: iio: Fix typo in iio 2012-05-08 16:04:12 -07:00