linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] ASoC: cros_ec_codec: Make symbol 'cros_ec_dai' static
@ 2019-02-13  6:29 Wei Yongjun
  2019-02-13  6:45 ` Cheng-yi Chiang
  2019-02-13 11:53 ` Applied "ASoC: cros_ec_codec: Make symbol 'cros_ec_dai' static" to the asoc tree Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Wei Yongjun @ 2019-02-13  6:29 UTC (permalink / raw)
  To: Cheng-Yi Chiang, Enric Balletbo i Serra, Guenter Roeck,
	Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	Benson Leung
  Cc: Wei Yongjun, alsa-devel, linux-kernel, kernel-janitors

Fixes the following sparse warning:

sound/soc/codecs/cros_ec_codec.c:209:27: warning:
 symbol 'cros_ec_dai' was not declared. Should it be static?

Fixes: b291f42a3718 ("ASoC: cros_ec_codec: Add codec driver for Cros EC")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 sound/soc/codecs/cros_ec_codec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/cros_ec_codec.c b/sound/soc/codecs/cros_ec_codec.c
index b14100b6a939..99a3af8a15ff 100644
--- a/sound/soc/codecs/cros_ec_codec.c
+++ b/sound/soc/codecs/cros_ec_codec.c
@@ -206,7 +206,7 @@ static const struct snd_soc_dai_ops cros_ec_i2s_dai_ops = {
 	.set_fmt = cros_ec_i2s_set_dai_fmt,
 };
 
-struct snd_soc_dai_driver cros_ec_dai[] = {
+static struct snd_soc_dai_driver cros_ec_dai[] = {
 	{
 		.name = "cros_ec_codec I2S",
 		.id = 0,




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

end of thread, other threads:[~2019-02-13 11:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-13  6:29 [PATCH -next] ASoC: cros_ec_codec: Make symbol 'cros_ec_dai' static Wei Yongjun
2019-02-13  6:45 ` Cheng-yi Chiang
2019-02-13 11:53 ` Applied "ASoC: cros_ec_codec: Make symbol 'cros_ec_dai' static" to the asoc tree Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).