]> Git Repo - linux.git/commitdiff
ASoC: TSCS42xx: make functions pll_event and dac_event static
authorColin Ian King <[email protected]>
Mon, 8 Jan 2018 23:14:44 +0000 (23:14 +0000)
committerMark Brown <[email protected]>
Tue, 9 Jan 2018 17:02:42 +0000 (17:02 +0000)
The functions pll_event and dac_event are local to the source and do
not need to be in global scope, so make them static.

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

Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Steven Eckhoff <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/codecs/tscs42xx.c

index 4a5b32a717f25353610c2cf11e7d46c653037604..e7661d0315e62b862a15ed7c93485f7558a85a15 100644 (file)
@@ -355,8 +355,8 @@ static int dapm_micb_event(struct snd_soc_dapm_widget *w,
        return 0;
 }
 
-int pll_event(struct snd_soc_dapm_widget *w,
-                  struct snd_kcontrol *kcontrol, int event)
+static int pll_event(struct snd_soc_dapm_widget *w,
+                    struct snd_kcontrol *kcontrol, int event)
 {
        struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
        int ret;
@@ -369,8 +369,8 @@ int pll_event(struct snd_soc_dapm_widget *w,
        return ret;
 }
 
-int dac_event(struct snd_soc_dapm_widget *w,
-                  struct snd_kcontrol *kcontrol, int event)
+static int dac_event(struct snd_soc_dapm_widget *w,
+                    struct snd_kcontrol *kcontrol, int event)
 {
        struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
        struct tscs42xx *tscs42xx = snd_soc_codec_get_drvdata(codec);
This page took 0.067237 seconds and 4 git commands to generate.