linux/drivers/iio/adc
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
..
ad7266.c Staging fixes for 3.8-rc3 2013-01-14 09:08:38 -08:00
ad7298.c Drivers: iio: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
ad7476.c Drivers: iio: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
ad7791.c Drivers: iio: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
ad7793.c iio:ad7793: Add support for the ad7796 and ad7797 2012-11-30 12:57:09 +00:00
ad7887.c Drivers: iio: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
ad_sigma_delta.c staging:iio: Add support for multiple buffers 2012-11-10 10:17:21 +00:00
at91_adc.c Staging fixes for 3.8-rc3 2013-01-14 09:08:38 -08:00
Kconfig iio: fix Kconfig for max1363 2013-01-26 10:07:45 +00:00
lp8788_adc.c iio/adc: (lp8788) Provide OF node information to iio device 2013-02-02 09:55:21 +00:00
Makefile This is the MFD patch set for the 3.8 merge window. 2012-12-16 18:55:20 -08:00
max1363.c iio/adc: (max1363) Fix data conversion problems 2013-02-02 10:08:23 +00:00
ti_am335x_adc.c Drivers: iio: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
ti-adc081c.c iio: adc: Add Texas Instruments ADC081C021/027 support 2012-11-30 12:57:09 +00:00
viperboard_adc.c Drivers: iio: remove __dev* attributes. 2013-01-03 15:57:03 -08:00