ASoC: Make soc_find_matching_codec() static
PATCH 1/1 ASoC: Make soc_find_matching_codec() static
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 <[email protected]>
--- sound/soc/soc-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/soc/soc-core.c +2 -1
@@ -1641,7 +1641,8 @@ static void soc_unregister_ac97_dai_link(struct snd_soc_pcm_runtime *rtd) }#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;
Signature · 1 line
1.8.0
Hi,
Quoted 7 lines · Lars-Peter Clausen
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 <[email protected]>
-- Sebastian
Quoted 1 line · Lars-Peter Clausen
The function is only used locally, make it static.
Applied, thanks.