From c84ed58868e4b8cef09e0d5ae0e5a091346e1ece Mon Sep 17 00:00:00 2001 From: Kang KyungWoo Date: Tue, 18 Oct 2016 14:00:55 +0900 Subject: [PATCH] [COMMON] iio: adc: Extend max channel number. This patch is for extending max channel from 8 to 12. Change-Id: Ideae06e06fb42e0adf430a466e3807e3cf2fb9fb Signed-off-by: Kang KyungWoo --- drivers/iio/adc/exynos_adc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/iio/adc/exynos_adc.c b/drivers/iio/adc/exynos_adc.c index 63f43be7c94d..84e27c2df909 100644 --- a/drivers/iio/adc/exynos_adc.c +++ b/drivers/iio/adc/exynos_adc.c @@ -121,7 +121,7 @@ /* Bit definitions for ADC_V3 */ #define ADC_V3_DAT_FLAG (1u << 31) -#define MAX_ADC_V3_CHANNELS 8 +#define MAX_ADC_V3_CHANNELS 12 #define MAX_ADC_V2_CHANNELS 10 #define MAX_ADC_V1_CHANNELS 8 #define MAX_EXYNOS3250_ADC_CHANNELS 2 @@ -830,6 +830,8 @@ static const struct iio_chan_spec exynos_adc_iio_channels[] = { ADC_CHANNEL(7, "adc7"), ADC_CHANNEL(8, "adc8"), ADC_CHANNEL(9, "adc9"), + ADC_CHANNEL(10, "adc10"), + ADC_CHANNEL(11, "adc11"), }; static int exynos_adc_remove_devices(struct device *dev, void *c) -- 2.20.1