linux/drivers/iio/adc
Naidu Tellapati 13415a998a iio: adc: cc10001: Fix the channel number mapping
When some of the ADC channels are reserved for remote CPUs,
the scan index and the corresponding channel number doesn't
match. This leads to convesion on the incorrect channel during
triggered capture.

Fix this by using a scan index to channel mapping encoded
in the iio_chan_spec for this purpose while starting conversion
on a particular ADC channel in trigger handler.

Also, the channel_map is not really used anywhere but in probe(), so
no need to keep track of it. Remove it from device structure.

While here, add 1 to number of channels to register timestamp channel
with the IIO core.

Fixes: 1664f6a5b0 ("iio: adc: Cosmic Circuits 10001 ADC driver")
Signed-off-by: Naidu Tellapati <naidu.tellapati@imgtec.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-05-08 09:37:32 -04:00
..
ad799x.c iio: ad799x: Fix ad7991/ad7995/ad7999 config setup 2014-12-12 12:34:00 +00:00
ad7266.c
ad7291.c
ad7298.c
ad7476.c
ad7791.c
ad7793.c iio:adc: Fix typo in MODULE_DESCRIPTION in ad7793.c 2015-03-07 19:18:49 +00:00
ad7887.c
ad7923.c
ad_sigma_delta.c
at91_adc.c iio: fix drivers that check buffer->scan_mask 2015-03-07 19:17:07 +00:00
axp288_adc.c iio/axp288_adc: add missing channel info mask 2015-04-09 18:49:13 +01:00
cc10001_adc.c iio: adc: cc10001: Fix the channel number mapping 2015-05-08 09:37:32 -04:00
exynos_adc.c
Kconfig Merge 4.0-rc7 into staging-next 2015-04-07 11:03:02 +02:00
lp8788_adc.c
Makefile iio: adc: Cosmic Circuits 10001 ADC driver 2015-01-29 18:09:40 +00:00
max1027.c
max1363.c
mcp320x.c iio: mcp320x: Fix occasional incorrect readings 2015-05-07 11:12:20 +01:00
mcp3422.c iio:adc:mcp3422 Fix incorrect scales table 2015-02-04 16:30:22 +00:00
men_z188_adc.c
nau7802.c
qcom-spmi-iadc.c iio: iadc: wait_for_completion_timeout time in jiffies 2015-01-10 11:43:26 +00:00
qcom-spmi-vadc.c iio: adc: spmi-vadc: Fix overflow in output value normalization 2015-04-18 17:40:04 +01:00
rockchip_saradc.c Staging patches for 3.19-rc1 2014-12-15 18:06:13 -08:00
ti_am335x_adc.c iio: fix drivers that check buffer->scan_mask 2015-03-07 19:17:07 +00:00
ti-adc081c.c
ti-adc128s052.c
twl4030-madc.c
twl6030-gpadc.c
vf610_adc.c Merge 4.0-rc7 into staging-next 2015-04-07 11:03:02 +02:00
viperboard_adc.c
xilinx-xadc-core.c iio: adc: xilinx: Fix VREFN sign 2015-04-19 13:49:54 +01:00
xilinx-xadc-events.c
xilinx-xadc.h iio: adc: xilinx: Fix register addresses 2015-04-19 13:47:58 +01:00