linux/drivers/iio/adc
Peter Meerwald a5a3e43111 iio: Fix sign extension table in mcp3422 driver
the index argument to sign_extend32() gives the bit position (from 0)
to the sign bit

so e.g. if the measurement has 16-bit resolution, we need to pass 15;
a measurement of 0x8000 should be reported as -32768, not 32768

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2013-11-05 22:45:25 +00:00
..
ad7266.c iio:ad7266: Remove redundant call to iio_sw_preenable() 2013-10-16 19:11:31 +01:00
ad7298.c iio:ad7298: Use iio_push_to_buffers_with_timestamp() 2013-09-21 19:23:52 +01:00
ad7476.c iio:ad7476: Report scale as fractional value 2013-10-01 16:19:12 +01:00
ad7791.c iio:ad7791: Report scale as fractional value 2013-10-01 16:19:12 +01:00
ad7793.c iio: adc: ad7793: Use devm_* APIs 2013-08-03 18:40:39 +01:00
ad7887.c iio:ad7887: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:12:04 +01:00
ad7923.c iio:ad7923: Use iio_push_to_buffers_with_timestamp() 2013-09-21 19:23:53 +01:00
ad_sigma_delta.c iio:ad_sigma_delta: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:12:40 +01:00
at91_adc.c iio: at91: fix error return code in at91_adc_probe() 2013-11-02 12:07:54 +00:00
exynos_adc.c iio: exynos_adc: Use devm_iio_device_alloc 2013-08-03 18:40:42 +01:00
Kconfig iio:ti_am335x_adc ensure that IIO_KFIFO_BUF is not selected witout IIO_BUFFER 2013-09-28 11:36:29 +01:00
lp8788_adc.c iio: adc: lp8788_adc: Use devm_* APIs 2013-08-03 18:40:40 +01:00
Makefile iio: adc: Add driver for Microchip MCP3422/3/4 high resolution ADC 2013-09-07 22:17:44 +01:00
max1363.c iio:adc:max1363 support SMBus for 8-bit devices 2013-10-20 22:36:21 +01:00
mcp320x.c iio: adc: mcp320x: Use devm_* APIs 2013-08-03 18:40:41 +01:00
mcp3422.c iio: Fix sign extension table in mcp3422 driver 2013-11-05 22:45:25 +00:00
nau7802.c iio: adc: nau7802: Remove redundant of_match_ptr 2013-10-23 17:52:25 +01:00
ti_am335x_adc.c iio: adc: ti_am335x_adc: Remove redundant of_match_ptr 2013-10-23 17:52:25 +01:00
ti-adc081c.c iio: adc: ti-adc081c: Include linux/of.h header 2013-10-18 20:05:56 +01:00
twl6030-gpadc.c iio: adc: twl6030-gpadc: Remove redundant code 2013-10-24 14:45:09 +01:00
viperboard_adc.c iio: adc: viperboard_adc: Use devm_iio_device_alloc 2013-08-03 18:40:42 +01:00