diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-06-28 15:06:50 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-07-02 11:24:52 +0200 |
commit | 004123f3dfb8bef1458508c1b1f18e56cc1cd336 (patch) | |
tree | 8ca1d7228283b8a3476db95a32042efa193c2b30 | |
parent | iio: adc: mcp3422: Checking for error on probe (diff) | |
download | linux-004123f3dfb8bef1458508c1b1f18e56cc1cd336.tar.xz linux-004123f3dfb8bef1458508c1b1f18e56cc1cd336.zip |
iio: adc: stm32: make array stm32h7_adc_ckmodes_spec static
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>
-rw-r--r-- | drivers/iio/adc/stm32-adc-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/stm32-adc-core.c b/drivers/iio/adc/stm32-adc-core.c index e09233b03c05..9d083c2338f9 100644 --- a/drivers/iio/adc/stm32-adc-core.c +++ b/drivers/iio/adc/stm32-adc-core.c @@ -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 }, |