linux/drivers/iio/adc
Sebastian Andrzej Siewior 18926edebc iio: ti_am335x_adc: Allow to specify input line
The TSC part allows to specify the input lines. The IIO part assumes
that it usues always the last few, that means if IIO has adc-channels
set to 2 it will use channel 6 and 7. However it might make sense to use
only 6.
This patch changes the device property (which was introduced recently
and was never in an official release) in a way that the user can specify
which of the AIN lines should be used. In Addition to this, the name is
now AINx where x is the channel number i.e. for AIN6 we would have 6.
Prior this, it always started counting at 0 which is confusing. In
addition to this, it also checks for correct step number during reading
and does not rely on proper FIFO depth.

Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
2013-06-12 18:50:23 +02: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:adc:ad7923: Add support for the ad7904/ad7914/ad7924 2013-03-17 20:16:41 +00:00
ad_sigma_delta.c iio:trigger: Introduce iio_tigger_{set,get}_drvdata 2013-03-25 21:06:09 +00:00
at91_adc.c iio: at91_adc: fix missing Sample and Hold time 2013-04-02 19:22:16 +01:00
exynos_adc.c iio: exynos_adc: fix wrong structure extration in suspend and resume 2013-05-22 22:15:20 +01:00
Kconfig iio:adc:ad7923: Add support for the ad7904/ad7914/ad7924 2013-03-17 20:16:41 +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_am335x_adc.c iio: ti_am335x_adc: Allow to specify input line 2013-06-12 18:50:23 +02:00
ti-adc081c.c iio:adc:ti-adc081 move to info_mask_(shared_by_type/separate) 2013-03-17 19:49:29 +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