提交 f1caa900 编写于 作者: T Tom Rix 提交者: Jonathan Cameron

iio: dac: set variable max5522_channels storage-class-specifier to static

smatch reports
drivers/iio/dac/max5522.c:55:28: warning: symbol
  'max5522_channels' was not declared. Should it be static?

This variable is only used in one file so it should be static.
Signed-off-by: NTom Rix <trix@redhat.com>
Reviewed-by: NNuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20230404013828.1914523-1-trix@redhat.comSigned-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
上级 ac2babe7
...@@ -52,7 +52,7 @@ struct max5522_state { ...@@ -52,7 +52,7 @@ struct max5522_state {
} \ } \
} }
const struct iio_chan_spec max5522_channels[] = { static const struct iio_chan_spec max5522_channels[] = {
MAX5522_CHANNEL(0), MAX5522_CHANNEL(0),
MAX5522_CHANNEL(1), MAX5522_CHANNEL(1),
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册