summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2023-04-03 21:38:28 -0400
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2023-04-10 12:26:34 +0100
commitf1caa90085ef31078076990c2ac64d05dd035278 (patch)
tree8659d4954decbbfd15d08efec45991ef98e8e3a7 /drivers/iio
parentac2babe70a9b8ab11a408481cad69b71a8b5fa91 (diff)
downloadlinux-f1caa90085ef31078076990c2ac64d05dd035278.tar.gz
linux-f1caa90085ef31078076990c2ac64d05dd035278.tar.bz2
linux-f1caa90085ef31078076990c2ac64d05dd035278.zip
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: Tom Rix <trix@redhat.com> Reviewed-by: Nuno Sa <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20230404013828.1914523-1-trix@redhat.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/dac/max5522.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/dac/max5522.c b/drivers/iio/dac/max5522.c
index 00ba4e98fb9c..05034a306597 100644
--- a/drivers/iio/dac/max5522.c
+++ b/drivers/iio/dac/max5522.c
@@ -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(1),
};