All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: max9867: make array ni_div static const
@ 2017-06-22  9:32 ` Colin King
  0 siblings, 0 replies; 7+ messages in thread
From: Colin King @ 2017-06-22  9:32 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Vinod Koul, Javier Martinez Canillas, Takashi Sakamoto,
	Kuninori Morimoto, Enric Balletbo i Serra, alsa-devel
  Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

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>
---
 sound/soc/codecs/max9867.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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[] = {
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-06-22 14:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-22  9:32 [PATCH] ASoC: max9867: make array ni_div static const Colin King
2017-06-22  9:32 ` Colin King
2017-06-22 10:30 ` [alsa-devel] " Vinod Koul
2017-06-22 10:42   ` Vinod Koul
2017-06-22 14:18 ` Applied "ASoC: max9867: make array ni_div static const" to the asoc tree Mark Brown
2017-06-22 14:18   ` Mark Brown
2017-06-22 14:18   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.