From: Kang KyungWoo Date: Tue, 18 Oct 2016 05:00:55 +0000 (+0900) Subject: [COMMON] iio: adc: Extend max channel number. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c84ed58868e4b8cef09e0d5ae0e5a091346e1ece;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 --- 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)