linux/drivers/staging/iio
Lucas Stankus 04f5b9f539 staging: iio: cdc: ad7746: avoid overwrite of num_channels
AD7745 devices don't have the CIN2 pins and therefore can't handle related
channels. Forcing the number of AD7746 channels may lead to enabling more
channels than what the hardware actually supports.
Avoid num_channels being overwritten after first assignment.

Signed-off-by: Lucas Stankus <lucas.p.stankus@gmail.com>
Fixes: 83e416f458 ("staging: iio: adc: Replace, rewrite ad7745 from scratch.")
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: <Stable@vger.kernel.org>
2021-05-13 16:50:08 +01:00
..
accel staging: iio: adis16240: add blank line before struct definition 2020-10-26 06:53:09 +01:00
adc iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
addac iio: remove left-over parent assignments 2020-06-14 11:50:04 +01:00
cdc staging: iio: cdc: ad7746: avoid overwrite of num_channels 2021-05-13 16:50:08 +01:00
Documentation staging:iio:documentation: Drop most generic docs 2020-09-16 19:12:00 +01:00
frequency staging: iio: ad9832: kernel-doc fixes 2021-03-25 19:13:52 +00:00
impedance-analyzer iio: make use of devm_iio_kfifo_buffer_setup() helper 2021-03-11 20:47:01 +00:00
meter Merge 5.1-rc6 into staging-next 2019-04-21 23:18:44 +02:00
resolver iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
Kconfig staging: add missing SPDX lines to Kconfig files 2019-04-03 11:10:15 +02:00
Makefile staging: iio: Drop ADIS16060 driver from staging 2018-06-10 11:52:31 +01:00
TODO staging: iio: remove mention of defunct list 2021-03-25 19:13:49 +00:00