未验证 提交 3511108a 编写于 作者: C Colin Ian King 提交者: Mark Brown

ASoC: TSCS42xx: make functions pll_event and dac_event static

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: NColin Ian King <colin.king@canonical.com>
Reviewed-by: NSteven Eckhoff <steven.eckhoff.opensource@gmail.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 599522ea
...@@ -355,7 +355,7 @@ static int dapm_micb_event(struct snd_soc_dapm_widget *w, ...@@ -355,7 +355,7 @@ static int dapm_micb_event(struct snd_soc_dapm_widget *w,
return 0; return 0;
} }
int pll_event(struct snd_soc_dapm_widget *w, static int pll_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event) struct snd_kcontrol *kcontrol, int event)
{ {
struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
...@@ -369,7 +369,7 @@ int pll_event(struct snd_soc_dapm_widget *w, ...@@ -369,7 +369,7 @@ int pll_event(struct snd_soc_dapm_widget *w,
return ret; return ret;
} }
int dac_event(struct snd_soc_dapm_widget *w, static int dac_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event) struct snd_kcontrol *kcontrol, int event)
{ {
struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册