aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiubo Li <Li.Xiubo@freescale.com>2014-04-02 19:53:59 -0400
committerMark Brown <broonie@linaro.org>2014-04-14 12:22:20 -0400
commit7a34b1c1dff720dd8dcf63e2b0e5fc15a8f7208f (patch)
treeacf4c8ff38be4f3c412e6726d42c8d5a2f95792a
parent964eafb1d59b7c270982d144882c64b93c67eb03 (diff)
ASoC: codec: fix the sparse check warnings.
Some thing Likes: reproduce: make C=1 CF=-D__CHECK_ENDIAN__ sparse warnings: (new ones prefixed by >>) >> sound/soc/codecs/wm8997.c:1084:15: sparse: symbol \ 'wm8997_get_regmap' was not declared. Should it be static? Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--sound/soc/codecs/88pm860x-codec.c2
-rw-r--r--sound/soc/codecs/cq93vc.c2
-rw-r--r--sound/soc/codecs/mc13783.c2
-rw-r--r--sound/soc/codecs/si476x.c2
-rw-r--r--sound/soc/codecs/wm5102.c2
-rw-r--r--sound/soc/codecs/wm5110.c2
-rw-r--r--sound/soc/codecs/wm8350.c2
-rw-r--r--sound/soc/codecs/wm8400.c2
-rw-r--r--sound/soc/codecs/wm8994.c2
-rw-r--r--sound/soc/codecs/wm8997.c2
10 files changed, 10 insertions, 10 deletions
diff --git a/sound/soc/codecs/88pm860x-codec.c b/sound/soc/codecs/88pm860x-codec.c
index dc9e6b94e645..f073b6feac94 100644
--- a/sound/soc/codecs/88pm860x-codec.c
+++ b/sound/soc/codecs/88pm860x-codec.c
@@ -1358,7 +1358,7 @@ static int pm860x_remove(struct snd_soc_codec *codec)
1358 return 0; 1358 return 0;
1359} 1359}
1360 1360
1361struct regmap *pm860x_get_regmap(struct device *dev) 1361static struct regmap *pm860x_get_regmap(struct device *dev)
1362{ 1362{
1363 struct pm860x_priv *pm860x = dev_get_drvdata(dev); 1363 struct pm860x_priv *pm860x = dev_get_drvdata(dev);
1364 1364
diff --git a/sound/soc/codecs/cq93vc.c b/sound/soc/codecs/cq93vc.c
index 5e5518d20311..5ee48c8e4849 100644
--- a/sound/soc/codecs/cq93vc.c
+++ b/sound/soc/codecs/cq93vc.c
@@ -152,7 +152,7 @@ static int cq93vc_remove(struct snd_soc_codec *codec)
152 return 0; 152 return 0;
153} 153}
154 154
155struct regmap *cq93vc_get_regmap(struct device *dev) 155static struct regmap *cq93vc_get_regmap(struct device *dev)
156{ 156{
157 struct davinci_vc *davinci_vc = codec->dev->platform_data; 157 struct davinci_vc *davinci_vc = codec->dev->platform_data;
158 158
diff --git a/sound/soc/codecs/mc13783.c b/sound/soc/codecs/mc13783.c
index 8c0cec392dec..9029e20514e1 100644
--- a/sound/soc/codecs/mc13783.c
+++ b/sound/soc/codecs/mc13783.c
@@ -727,7 +727,7 @@ static struct snd_soc_dai_driver mc13783_dai_sync[] = {
727 } 727 }
728}; 728};
729 729
730struct regmap *mc13783_get_regmap(struct device *dev) 730static struct regmap *mc13783_get_regmap(struct device *dev)
731{ 731{
732 return dev_get_regmap(dev->parent, NULL); 732 return dev_get_regmap(dev->parent, NULL);
733} 733}
diff --git a/sound/soc/codecs/si476x.c b/sound/soc/codecs/si476x.c
index 961b7e8ac0da..f26befb0c297 100644
--- a/sound/soc/codecs/si476x.c
+++ b/sound/soc/codecs/si476x.c
@@ -231,7 +231,7 @@ static struct snd_soc_dai_driver si476x_dai = {
231 .ops = &si476x_dai_ops, 231 .ops = &si476x_dai_ops,
232}; 232};
233 233
234struct regmap *si476x_get_regmap(struct device *dev) 234static struct regmap *si476x_get_regmap(struct device *dev)
235{ 235{
236 return dev_get_regmap(dev->parent, NULL); 236 return dev_get_regmap(dev->parent, NULL);
237} 237}
diff --git a/sound/soc/codecs/wm5102.c b/sound/soc/codecs/wm5102.c
index aa60ba23b017..7a046536ea68 100644
--- a/sound/soc/codecs/wm5102.c
+++ b/sound/soc/codecs/wm5102.c
@@ -1798,7 +1798,7 @@ static unsigned int wm5102_digital_vu[] = {
1798 ARIZONA_DAC_DIGITAL_VOLUME_5R, 1798 ARIZONA_DAC_DIGITAL_VOLUME_5R,
1799}; 1799};
1800 1800
1801struct regmap *wm5102_get_regmap(struct device *dev) 1801static struct regmap *wm5102_get_regmap(struct device *dev)
1802{ 1802{
1803 struct wm5102_priv *priv = dev_get_drvdata(dev); 1803 struct wm5102_priv *priv = dev_get_drvdata(dev);
1804 1804
diff --git a/sound/soc/codecs/wm5110.c b/sound/soc/codecs/wm5110.c
index 4be5f990a9d6..97eb1bc5bea7 100644
--- a/sound/soc/codecs/wm5110.c
+++ b/sound/soc/codecs/wm5110.c
@@ -1629,7 +1629,7 @@ static unsigned int wm5110_digital_vu[] = {
1629 ARIZONA_DAC_DIGITAL_VOLUME_6R, 1629 ARIZONA_DAC_DIGITAL_VOLUME_6R,
1630}; 1630};
1631 1631
1632struct regmap *wm5110_get_regmap(struct device *dev) 1632static struct regmap *wm5110_get_regmap(struct device *dev)
1633{ 1633{
1634 struct wm5110_priv *priv = dev_get_drvdata(dev); 1634 struct wm5110_priv *priv = dev_get_drvdata(dev);
1635 1635
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c
index 6b31a9f83137..1bd14b64a6c0 100644
--- a/sound/soc/codecs/wm8350.c
+++ b/sound/soc/codecs/wm8350.c
@@ -1606,7 +1606,7 @@ static int wm8350_codec_remove(struct snd_soc_codec *codec)
1606 return 0; 1606 return 0;
1607} 1607}
1608 1608
1609struct regmap *wm8350_get_regmap(struct device *dev) 1609static struct regmap *wm8350_get_regmap(struct device *dev)
1610{ 1610{
1611 struct wm8350 *wm8350 = dev_get_platdata(dev); 1611 struct wm8350 *wm8350 = dev_get_platdata(dev);
1612 1612
diff --git a/sound/soc/codecs/wm8400.c b/sound/soc/codecs/wm8400.c
index e6410f2e8cac..5880d223e161 100644
--- a/sound/soc/codecs/wm8400.c
+++ b/sound/soc/codecs/wm8400.c
@@ -1359,7 +1359,7 @@ static int wm8400_codec_remove(struct snd_soc_codec *codec)
1359 return 0; 1359 return 0;
1360} 1360}
1361 1361
1362struct regmap *wm8400_get_regmap(struct device *dev) 1362static struct regmap *wm8400_get_regmap(struct device *dev)
1363{ 1363{
1364 struct wm8400 *wm8400 = dev_get_platdata(dev); 1364 struct wm8400 *wm8400 = dev_get_platdata(dev);
1365 1365
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index daa4edcfe14a..6f336da856c5 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -4432,7 +4432,7 @@ static int wm8994_codec_remove(struct snd_soc_codec *codec)
4432 return 0; 4432 return 0;
4433} 4433}
4434 4434
4435struct regmap *wm8994_get_regmap(struct device *dev) 4435static struct regmap *wm8994_get_regmap(struct device *dev)
4436{ 4436{
4437 struct wm8994 *control = dev_get_drvdata(dev->parent); 4437 struct wm8994 *control = dev_get_drvdata(dev->parent);
4438 4438
diff --git a/sound/soc/codecs/wm8997.c b/sound/soc/codecs/wm8997.c
index 3d50621b070c..09c4150840a3 100644
--- a/sound/soc/codecs/wm8997.c
+++ b/sound/soc/codecs/wm8997.c
@@ -1081,7 +1081,7 @@ static unsigned int wm8997_digital_vu[] = {
1081 ARIZONA_DAC_DIGITAL_VOLUME_5R, 1081 ARIZONA_DAC_DIGITAL_VOLUME_5R,
1082}; 1082};
1083 1083
1084struct regmap *wm8997_get_regmap(struct device *dev) 1084static struct regmap *wm8997_get_regmap(struct device *dev)
1085{ 1085{
1086 struct wm8997_priv *priv = dev_get_drvdata(dev); 1086 struct wm8997_priv *priv = dev_get_drvdata(dev);
1087 1087