projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ea659a
)
ASoC: max9867: make array ni_div static const
author
Colin Ian King
<colin.king@canonical.com>
Thu, 22 Jun 2017 09:32:31 +0000
(10:32 +0100)
committer
Mark Brown
<broonie@kernel.org>
Thu, 22 Jun 2017 10:45:17 +0000
(11:45 +0100)
The array ni_div does not need to be in global scope and is not
modified, so make it static const.
Cleans up sparse warning:
"symbol 'ni_div' was not declared. Should it be static?"
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max9867.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/max9867.c
b/sound/soc/codecs/max9867.c
index
0247edc
..
2a40a69
100644
(file)
--- a/
sound/soc/codecs/max9867.c
+++ b/
sound/soc/codecs/max9867.c
@@
-132,7
+132,7
@@
enum rates {
pcm_rate_48, max_pcm_rate,
};
-struct ni_div_rates {
+st
atic const st
ruct ni_div_rates {
u32 mclk;
u16 ni[max_pcm_rate];
} ni_div[] = {