android_kernel_motorola_sm6225/drivers/iio/adc
Lars-Peter Clausen ecf6ca2539 iio:ad7923: Implement scale reporting
The driver already claims to support scale reporting in its channel spec, but
doesn't actually implement this yet. This patch uses the regulator API to get
the reference voltage and calculates the scale based on that. The patch also
moves the global configuration bits into a field in the ad7923_state struct,
since depending on the RANGE bit, the range goes either from 0 to VREF or from 0
to 2 * VREF. So we need to know the setting of the RANGE bit when calculating
the scale.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: Patrick Vasseur <patrick.vasseur@c-s.fr>
Cc: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2013-03-17 20:16:40 +00:00
..
ad7266.c iio:adc:ad7266 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:28 +00:00
ad7298.c iio:adc:ad7298 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:28 +00:00
ad7476.c iio:adc:ad7476 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:29 +00: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 iio:adc:ad7887 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:29 +00:00
ad7923.c iio:ad7923: Implement scale reporting 2013-03-17 20:16:40 +00:00
ad_sigma_delta.c staging:iio: Add support for multiple buffers 2012-11-10 10:17:21 +00:00
at91_adc.c iio:adc:at91_adc move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:29 +00:00
exynos_adc.c iio:adc:exynos move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:43 +00:00
Kconfig iio: adc: Kconfig: exynos_adc depends on CONFIG_OF 2013-03-17 20:11:15 +00:00
lp8788_adc.c iio:adc:lp8778_adc move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:29 +00:00
Makefile iio: adc: add exynos adc driver under iio framwork 2013-03-16 10:18:15 +00:00
max1363.c iio:adc:max1363 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:13 +00:00
ti-adc081c.c iio:adc:ti-adc081 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:29 +00:00
ti_am335x_adc.c iio:adc:ti_am335x_adc move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:30 +00:00
viperboard_adc.c iio:adc:viperboard_adc move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:30 +00:00