summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/max9867.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-06-22 10:32:31 +0100
committerMark Brown <broonie@kernel.org>2017-06-22 11:45:17 +0100
commit1943b0661184a5d17f31624dc8ac2c02a086c998 (patch)
tree9577e516baebf817342bf8c4ef66d065707e1ce7 /sound/soc/codecs/max9867.c
parent2ea659a9ef488125eb46da6eb571de5eae5c43f6 (diff)
ASoC: max9867: make array ni_div static const
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>
Diffstat (limited to 'sound/soc/codecs/max9867.c')
-rw-r--r--sound/soc/codecs/max9867.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/max9867.c b/sound/soc/codecs/max9867.c
index 0247edc9c84e..2a40a69a7513 100644
--- 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 {
+static const struct ni_div_rates {
u32 mclk;
u16 ni[max_pcm_rate];
} ni_div[] = {