iio: adc: stm32: make array stm32h7_adc_ckmodes_spec static
authorColin Ian King <colin.king@canonical.com>
Wed, 28 Jun 2017 13:06:50 +0000 (14:06 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 2 Jul 2017 09:24:52 +0000 (10:24 +0100)
The array stm32h7_adc_ckmodes_spec does not need to be in global scope, so
make it static.

Cleans up sparse warning:
"symbol 'stm32h7_adc_ckmodes_spec' was not declared. Should it be static?"

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/stm32-adc-core.c

index e09233b03c055b01c1d3cab229b66e5d093c1c3d..9d083c2338f9e8d618c2802f024896aaa8863d1b 100644 (file)
@@ -172,7 +172,7 @@ struct stm32h7_adc_ck_spec {
        int div;
 };
 
-const struct stm32h7_adc_ck_spec stm32h7_adc_ckmodes_spec[] = {
+static const struct stm32h7_adc_ck_spec stm32h7_adc_ckmodes_spec[] = {
        /* 00: CK_ADC[1..3]: Asynchronous clock modes */
        { 0, 0, 1 },
        { 0, 1, 2 },