aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2016-09-26 18:45:10 -0400
committerMark Brown <broonie@kernel.org>2016-09-27 12:10:49 -0400
commitb74e7a26311a14f61fbcd516fb475dd79ea9c4b0 (patch)
tree3350ad60324dd1f9b8d616b10ac531b42734e2e2
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
ASoC: rt5616: add static qualifier for file local symbols
Sparse reports below warnings. rt5616.c:1270:24: warning: symbol 'rt5616_aif_dai_ops' was not declared. Should it be static? rt5616.c:1277:27: warning: symbol 'rt5616_dai' was not declared. Should it be static? These two symbols are just used inner the file, thus it's better to add static qualifier. This commit adds it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/rt5616.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt5616.c b/sound/soc/codecs/rt5616.c
index f527b5b2817b..98ae326c62fa 100644
--- a/sound/soc/codecs/rt5616.c
+++ b/sound/soc/codecs/rt5616.c
@@ -1267,14 +1267,14 @@ static int rt5616_resume(struct snd_soc_codec *codec)
1267#define RT5616_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \ 1267#define RT5616_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \
1268 SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S8) 1268 SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S8)
1269 1269
1270struct snd_soc_dai_ops rt5616_aif_dai_ops = { 1270static struct snd_soc_dai_ops rt5616_aif_dai_ops = {
1271 .hw_params = rt5616_hw_params, 1271 .hw_params = rt5616_hw_params,
1272 .set_fmt = rt5616_set_dai_fmt, 1272 .set_fmt = rt5616_set_dai_fmt,
1273 .set_sysclk = rt5616_set_dai_sysclk, 1273 .set_sysclk = rt5616_set_dai_sysclk,
1274 .set_pll = rt5616_set_dai_pll, 1274 .set_pll = rt5616_set_dai_pll,
1275}; 1275};
1276 1276
1277struct snd_soc_dai_driver rt5616_dai[] = { 1277static struct snd_soc_dai_driver rt5616_dai[] = {
1278 { 1278 {
1279 .name = "rt5616-aif1", 1279 .name = "rt5616-aif1",
1280 .id = RT5616_AIF1, 1280 .id = RT5616_AIF1,