ASoC: Make soc_find_matching_codec() static
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 4 May 2014 17:18:30 +0000 (19:18 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 5 May 2014 19:29:25 +0000 (12:29 -0700)
The function is only used locally, make it static.

Fixes the following warning from sparse:
sound/soc/soc-core.c:1644:22: warning: symbol 'soc_find_matching_codec' was not declared. Should it be static?

Fixes: 3ca041ed ("ASoC: dt: Allow Aux Codecs to be specified using DT")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-By: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/soc-core.c

index 448a60748523220e86a69027cde3e9dda3ab541b..199eb51d46144725628742ddb1295dcd5e822e0c 100644 (file)
@@ -1543,7 +1543,8 @@ static void soc_unregister_ac97_dai_link(struct snd_soc_codec *codec)
 }
 #endif
 
-struct snd_soc_codec *soc_find_matching_codec(struct snd_soc_card *card, int num)
+static struct snd_soc_codec *soc_find_matching_codec(struct snd_soc_card *card,
+       int num)
 {
        struct snd_soc_aux_dev *aux_dev = &card->aux_dev[num];
        struct snd_soc_codec *codec;