提交 004123f3 编写于 作者: C Colin Ian King 提交者: Jonathan Cameron

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: NColin Ian King <colin.king@canonical.com>
Acked-by: NFabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 6be72b90
...@@ -172,7 +172,7 @@ struct stm32h7_adc_ck_spec { ...@@ -172,7 +172,7 @@ struct stm32h7_adc_ck_spec {
int div; 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 */ /* 00: CK_ADC[1..3]: Asynchronous clock modes */
{ 0, 0, 1 }, { 0, 0, 1 },
{ 0, 1, 2 }, { 0, 1, 2 },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册