]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: ad7606: Fix hardcoded offset in the ADC channels
authorGuillaume Stols <gstols@baylibre.com>
Tue, 10 Dec 2024 10:46:41 +0000 (10:46 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 20 Dec 2024 18:50:20 +0000 (18:50 +0000)
commit954c06ddabb0d02bedd7a99a59fcc09173087eee
tree55e258a793c952bfc84b091cbf7ca4adbc0e41b0
parente16ebd9d839d1252ff15c29d37b0cf303ddd2662
iio: adc: ad7606: Fix hardcoded offset in the ADC channels

When introducing num_adc_channels, I overlooked some new functions
created in a meanwhile that had also the hardcoded offset. This commit
adds the new logic to these functions.

Fixes: ef67f16e365c ("iio: adc: ad7606: Introduce num_adc_channels")
Signed-off-by: Guillaume Stols <gstols@baylibre.com>
Link: https://patch.msgid.link/20241210-ad7606_add_iio_backend_software_mode-v2-1-6619c3e50d81@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7606.c
drivers/iio/adc/ad7606.h