iio: adc: nexell_adc: Fix duplicate ‘const’ declaration specifier build warning
authorHoegeun Kwon <hoegeun.kwon@samsung.com>
Mon, 7 Jan 2019 02:18:02 +0000 (11:18 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 29 Jan 2019 02:25:41 +0000 (11:25 +0900)
This patch fixes following build warning caused  duplicate declaration:

  drivers/iio/adc/nexell_adc.c:358:37: warning: duplicate ‘const’ declaration specifier [-Wduplicate-decl-specifier]
   static const struct nexell_adc_data const nexell_adc_s5p6818_data = {
                                       ^~~~~

Change-Id: I5870765ed0700169aac0b5a93beaf79a9110ed58
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
drivers/iio/adc/nexell_adc.c

index 82a551b5521c962e320739fde445ae388c39e5c5..d39fb5f62f4c20163a3ece57beceafea05506074 100644 (file)
@@ -355,7 +355,7 @@ static int nexell_adc_v2_read_val(struct iio_dev *indio_dev,
        return ret;
 }
 
-static const struct nexell_adc_data const nexell_adc_s5p6818_data = {
+static const struct nexell_adc_data nexell_adc_s5p6818_data = {
        .version        = 2,
        .adc_con        = nexell_adc_v2_adc_con,
        .read_polling   = nexell_adc_v2_read_polling,