linux/drivers/iio
Guenter Roeck 482bb4e6c6 iio/adc: (max1363) Fix data conversion problems
For chips with more than 8 bit ADC resolution, received data was always
masked against 0xfff, ie with a 12 bit mask. This can result in bad data
for chips with 10 bit resolution if those chips have higher bits set
(seen with MAX1139).

The receive buffer was defined as char array. This could result in
unintentional sign extensions if the upper bit in a received byte
was set. Since the chip is configured for unipolar mode, we never
have to handle negative values, and sign extensions are never needed.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2013-02-02 10:08:23 +00:00
..
accel iio:accel: Add STMicroelectronics accelerometers driver 2013-01-31 17:56:43 +00:00
adc iio/adc: (max1363) Fix data conversion problems 2013-02-02 10:08:23 +00:00
amplifiers Drivers: iio: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
common iio:common: removed unused functions outside st_sensors library 2013-02-02 09:37:54 +00:00
dac Staging fixes for 3.8-rc3 2013-01-14 09:08:38 -08:00
frequency Staging fixes for 3.8-rc3 2013-01-14 09:08:38 -08:00
gyro iio: gyro: Add itg3200 2013-02-02 09:33:33 +00:00
imu iio:adis16400: Add support for the adis16448 2013-01-26 10:07:51 +00:00
light iio:light:tsl2563 move out of staging 2013-01-27 17:37:24 +00:00
magnetometer iio:magnetometer: Add STMicroelectronics magnetometers driver 2013-01-31 17:56:43 +00:00
Kconfig staging:iio: Move adis library out of staging 2012-11-19 22:22:12 +00:00
Makefile staging:iio: Move adis library out of staging 2012-11-19 22:22:12 +00:00
buffer_cb.c staging:iio: add a callback buffer for in kernel push interface 2012-11-10 10:17:27 +00:00
iio_core.h
iio_core_trigger.h
industrialio-buffer.c staging:iio: Add support for multiple buffers 2012-11-10 10:17:21 +00:00
industrialio-core.c iio: Factor out fixed point number parsing into its own function 2012-11-20 21:26:39 +00:00
industrialio-event.c drivers/iio/industrialio-event.c: eliminate possible double free 2012-11-17 10:17:20 +00:00
industrialio-trigger.c iio:trigger: Register sysfs file statically 2012-07-08 10:39:58 +01:00
industrialio-triggered-buffer.c iio: Add helper function for initializing triggered buffers 2012-06-18 17:26:09 -07:00
inkern.c staging:iio:in kernel users: Add a data field for channel specific info. 2012-11-10 10:17:27 +00:00
kfifo_buf.c staging:iio: Remove noop call to __iio_update_buffer 2013-01-31 17:56:44 +00:00