ASoC: rt5514: make array rt5514_dai static
authorColin Ian King <colin.king@canonical.com>
Sun, 13 Aug 2017 15:08:03 +0000 (16:08 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 14 Aug 2017 16:14:03 +0000 (17:14 +0100)
The array rt5514_dai is local to the source and does not need to be in
global scope, so make it static.

Cleans up sparse warnings:
symbol 'rt5514_dai' was not declared. Should it be static?

warning: symbol 'rt5514_dai' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5514.c

index 0eabe569ab7362f9f569faea74ff340123cf5b85..a694ce9fed867d5edc06e900704b8d9267043f78 100644 (file)
@@ -1066,7 +1066,7 @@ static const struct snd_soc_dai_ops rt5514_aif_dai_ops = {
        .set_tdm_slot = rt5514_set_tdm_slot,
 };
 
-struct snd_soc_dai_driver rt5514_dai[] = {
+static struct snd_soc_dai_driver rt5514_dai[] = {
        {
                .name = "rt5514-aif1",
                .id = 0,