diff options
author | Baoyou Xie <baoyou.xie@linaro.org> | 2016-08-11 08:38:11 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-08-11 16:02:16 +0200 |
commit | 6b0ffacdaf549d66a0c2a838d68f18495980def4 (patch) | |
tree | 4b65935d8680917b044a27b067b5071f4bcdab97 /sound/soc/atmel/atmel-pdmic.c | |
parent | Linux 4.8-rc1 (diff) | |
download | linux-6b0ffacdaf549d66a0c2a838d68f18495980def4.tar.xz linux-6b0ffacdaf549d66a0c2a838d68f18495980def4.zip |
ASoC: atmel-pdmic: mark symbols static where possible
We get 1 warning about global functions without a declaration
in the ASoC atmel-pdmic driver when building with W=1:
sound/soc/atmel/atmel-pdmic.c:286:5: warning: no previous prototype for 'pdmic_get_mic_volsw' [-Wmissing-prototypes]
In fact, this function is only used in the file in which it is declared
and don't need a declaration, but can be made static.
so this patch marks it 'static'.
Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/atmel/atmel-pdmic.c')
-rw-r--r-- | sound/soc/atmel/atmel-pdmic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/atmel/atmel-pdmic.c b/sound/soc/atmel/atmel-pdmic.c index 5f56da60c92f..4cce36e07360 100644 --- a/sound/soc/atmel/atmel-pdmic.c +++ b/sound/soc/atmel/atmel-pdmic.c @@ -283,7 +283,7 @@ static const DECLARE_TLV_DB_RANGE(mic_gain_tlv, 8, ARRAY_SIZE(mic_gain_table)-1, TLV_DB_SCALE_ITEM(-6500, 100, 0), ); -int pdmic_get_mic_volsw(struct snd_kcontrol *kcontrol, +static int pdmic_get_mic_volsw(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) { struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); |