]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: cros_ec_codec: Make symbol 'cros_ec_dai' static
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 13 Feb 2019 06:29:56 +0000 (06:29 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 13 Feb 2019 11:52:56 +0000 (11:52 +0000)
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>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cros_ec_codec.c

index b14100b6a939b4571def1c5c9911ecd0b10e167e..99a3af8a15ff47dbd91b4816a4d53dca65cc735e 100644 (file)
@@ -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,