summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2016-09-27 07:45:11 +0900
committerMark Brown <broonie@kernel.org>2016-09-27 09:12:17 -0700
commit3cadd224474d60ee06cebafc63db9cd5f8cc47f7 (patch)
treeba074c7e66d4961f5b62559ce4bd145832b60287 /sound/soc
parent020eab35390b976e6b93b61805002d3e2cd195de (diff)
downloadlinux-3cadd224474d60ee06cebafc63db9cd5f8cc47f7.tar.gz
linux-3cadd224474d60ee06cebafc63db9cd5f8cc47f7.tar.bz2
linux-3cadd224474d60ee06cebafc63db9cd5f8cc47f7.zip
ASOC: tpa6130a2: add static qualifier for file local symbols
Sparse reports a below warning. tpa6130a2.c:193:33: warning: symbol 'tpa6130a2_component_driver' was not declared. Should it be static? The symbol is just used inner the file. Forthermore, it's constant. Thus, it's better to add static and const qualifier. This commit adds it. Fixes: cb7e62256e99 (ASoC: tpa6130a2: Register component) Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/codecs/tpa6130a2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/tpa6130a2.c b/sound/soc/codecs/tpa6130a2.c
index 3712db0881d0..2e014c80d113 100644
--- a/sound/soc/codecs/tpa6130a2.c
+++ b/sound/soc/codecs/tpa6130a2.c
@@ -199,7 +199,7 @@ static const struct snd_soc_dapm_route tpa6130a2_dapm_routes[] = {
{ "Right PGA", NULL, "Power" },
};
-struct snd_soc_component_driver tpa6130a2_component_driver = {
+static const struct snd_soc_component_driver tpa6130a2_component_driver = {
.name = "tpa6130a2",
.probe = tpa6130a2_component_probe,
.dapm_widgets = tpa6130a2_dapm_widgets,