[COMMON] iio: adc: Extend max channel number.
authorKang KyungWoo <kwoo.kang@samsung.com>
Tue, 18 Oct 2016 05:00:55 +0000 (14:00 +0900)
committerJaehyoung Choi <jkkkkk.choi@samsung.com>
Wed, 9 May 2018 11:27:50 +0000 (20:27 +0900)
This patch is for extending max channel from 8 to 12.

Change-Id: Ideae06e06fb42e0adf430a466e3807e3cf2fb9fb
Signed-off-by: Kang KyungWoo <kwoo.kang@samsung.com>
drivers/iio/adc/exynos_adc.c

index 63f43be7c94dde5f13b45cdb62f7e681a5f2057d..84e27c2df909ee6a62b2e980650f5cfb7b32e6ed 100644 (file)
 /* 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)