From: Tom Rix Date: Tue, 4 Apr 2023 01:38:28 +0000 (-0400) Subject: iio: dac: set variable max5522_channels storage-class-specifier to static X-Git-Tag: v6.6.17~5000^2~34^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f1caa90085ef31078076990c2ac64d05dd035278;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Nuno Sa Link: https://lore.kernel.org/r/20230404013828.1914523-1-trix@redhat.com Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/dac/max5522.c b/drivers/iio/dac/max5522.c index 00ba4e9..05034a3 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), };