linux/drivers/iio
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
..
accel iio: accel: mma9553: check input value for activity period 2015-04-26 19:43:08 +01:00
adc iio: adc: cc10001: Fix the channel number mapping 2015-05-08 09:37:32 -04:00
amplifiers iio: amplifiers: ad8366: Use right order for type specification 2015-01-01 12:16:57 +00:00
common iio:st_sensors: Fix oops when probing SPI devices 2015-04-26 18:24:08 +01:00
dac iio: max517: Add support for MAX520 and MAX521 chips. 2015-03-28 10:57:34 +00:00
frequency iio: frequency: ad9523: Increase sleep time in ad9523_store_eeprom 2015-01-01 12:18:26 +00:00
gyro iio:st_sensors: Fix oops when probing SPI devices 2015-04-26 18:24:08 +01:00
humidity IIO: si7020: Allocate correct amount of memory in devm_iio_device_alloc 2015-02-14 11:35:12 +00:00
imu Merge 4.0-rc7 into staging-next 2015-04-07 11:03:02 +02:00
light iio: light: hid-sensor-prox: Fix modifier 2015-04-18 19:12:10 +01:00
magnetometer iio:st_sensors: Fix oops when probing SPI devices 2015-04-26 18:24:08 +01:00
orientation iio: hid-sensor-incl-3d: Introduce PM 2015-01-25 22:55:56 +00:00
pressure iio:st_sensors: Fix oops when probing SPI devices 2015-04-26 18:24:08 +01:00
proximity Merge 4.0-rc7 into staging-next 2015-04-07 11:03:02 +02:00
temperature iio: mlx90614: Support devices with dual IR sensor 2015-03-29 16:17:12 +01:00
trigger iio: trigger: Add a blank line after declarations 2014-12-26 12:15:36 +00:00
buffer_cb.c iio get rid of unneccessary error_ret 2014-02-18 08:46:36 +00:00
iio_core_trigger.h
iio_core.h iio: Move buffer registration to the core 2014-12-12 12:28:31 +00:00
industrialio-buffer.c iio: add support for hardware fifo 2015-03-29 16:17:10 +01:00
industrialio-core.c iio: core: Fix double free. 2015-03-14 18:54:14 +00:00
industrialio-event.c iio: core: Fix double free. 2015-03-14 18:54:14 +00:00
industrialio-trigger.c iio: Remove timestamp argument from iio_trigger_poll() and iio_trigger_poll_chained() 2014-06-14 16:25:59 +01:00
industrialio-triggered-buffer.c iio: kfifo: Remove unused argument in iio_kfifo_allocate 2014-12-26 11:20:38 +00:00
inkern.c First round of IIO new drivers, cleanups and functionality for the 3.20 cycle take 2 2015-01-21 10:13:37 +08:00
Kconfig Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild 2015-02-19 10:36:45 -08:00
kfifo_buf.c iio: kfifo: Set update_needed to false only if a buffer was allocated 2015-05-07 23:36:58 +01:00
Makefile iio: Add AS3935 lightning sensor support 2014-03-16 18:00:32 +00:00