linux/drivers/staging/iio
Alexandru Ardelean 73ad886896 staging:iio:ad7606: fix voltage scales
[ Upstream commit 4ee033301c ]

Fixes commit 17be2a2905 ("staging: iio:
ad7606: replace range/range_available with corresponding scale").

The AD7606 devices don't have a 2.5V voltage range, they have 5V & 10V
voltage range, which is selectable via the `gpio_range` descriptor.

The scales also seem to have been miscomputed, because when they were
applied to the raw values, the results differ from the expected values.
After checking the ADC transfer function in the datasheet, these were
re-computed.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2018-11-21 09:19:11 +01:00
..
accel staging:iio:accel:adis16240: sign extend function replace hard code duplication 2018-06-24 14:45:06 +01:00
adc staging:iio:ad7606: fix voltage scales 2018-11-21 09:19:11 +01:00
addac Staging: iio: adt7316: Move symbol export to definition 2018-03-10 15:18:56 +00:00
cdc staging: iio: ad7746: Fix bound checkings 2018-04-21 15:38:38 +01:00
Documentation staging:iio:docs: drop setting of THIS_MODULE from staging docs. 2017-09-03 18:10:28 +01:00
frequency staging:iio:frequency: drop assign iio_info.driver_module 2017-08-22 22:14:55 +01:00
impedance-analyzer staging:iio:impedance-analyzer:ad5933: Macro replacement Cleanups. 2018-06-30 18:21:17 +01:00
meter staging:iio:meter: Drop ADE7759 driver 2018-05-20 12:21:54 +01:00
resolver staging: iio: ad2s1200: Move driver out of staging 2018-05-20 12:17:48 +01:00
Kconfig staging: iio: Drop ADIS16060 driver from staging 2018-06-10 11:52:31 +01:00
Makefile staging: iio: Drop ADIS16060 driver from staging 2018-06-10 11:52:31 +01:00
TODO staging: iio: Augment TODO file with GPIO work item 2018-04-23 14:36:10 +02:00