diff mbox

ASoC: Make soc_find_matching_codec() static

Message ID 1399223910-28710-1-git-send-email-lars@metafoo.de (mailing list archive)
State Accepted
Commit 6b0a0b3b4e5c8510d88824310691e47e694dd35a
Headers show

Commit Message

Lars-Peter Clausen May 4, 2014, 5:18 p.m. UTC
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>
---
 sound/soc/soc-core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Sebastian Reichel May 5, 2014, 12:31 a.m. UTC | #1
Hi,

On Sun, May 04, 2014 at 07:18:30PM +0200, Lars-Peter Clausen wrote:
> 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>

-- Sebastian
Mark Brown May 5, 2014, 7:29 p.m. UTC | #2
On Sun, May 04, 2014 at 07:18:30PM +0200, Lars-Peter Clausen wrote:
> The function is only used locally, make it static.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index ff2b32f..e14bc6c 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -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;