]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: meson-saradc: do not use meson_sar_adc_iio_channels directly
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Mon, 24 Sep 2018 22:13:25 +0000 (00:13 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 29 Sep 2018 11:48:22 +0000 (12:48 +0100)
commit8d805564fc8e15df875c38f837d631ad5034ab4e
treea71894a85a3b005ada7f706bd5e3a5fca8c730b6
parentd3bff597c8fb56a5470f3574a923d1d7581f1c84
iio: adc: meson-saradc: do not use meson_sar_adc_iio_channels directly

In the future we may support two different channel sets:
- one which includes the voltage pads and the temperature sensor output
  (for Meson8, Meson8b and Meson8m2)
- one which only includes the voltage pads (GXBB, GXL, GXM and AXG)

Channel 7 has a special function on all of these platforms. However,
since we will have different channel array definitions we want our code
to always use whatever channels struct iio_dev uses.

No functional changes for now. This is the preparation for adding
temperature sensor support to this driver.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/meson_saradc.c