]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: codec: fix the sparse check warnings.
authorXiubo Li <Li.Xiubo@freescale.com>
Wed, 2 Apr 2014 23:53:59 +0000 (07:53 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 14 Apr 2014 16:22:20 +0000 (17:22 +0100)
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>
sound/soc/codecs/88pm860x-codec.c
sound/soc/codecs/cq93vc.c
sound/soc/codecs/mc13783.c
sound/soc/codecs/si476x.c
sound/soc/codecs/wm5102.c
sound/soc/codecs/wm5110.c
sound/soc/codecs/wm8350.c
sound/soc/codecs/wm8400.c
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm8997.c

index dc9e6b94e64581f8e0093d92ac63ba8f1badb602..f073b6feac947d208affcdfa9093175b9b1eada2 100644 (file)
@@ -1358,7 +1358,7 @@ static int pm860x_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-struct regmap *pm860x_get_regmap(struct device *dev)
+static struct regmap *pm860x_get_regmap(struct device *dev)
 {
        struct pm860x_priv *pm860x = dev_get_drvdata(dev);
 
index 5e5518d203119e3cdd53ffa7cc07e1a8adf6e298..5ee48c8e48490948847333d3a650a875e19421ff 100644 (file)
@@ -152,7 +152,7 @@ static int cq93vc_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-struct regmap *cq93vc_get_regmap(struct device *dev)
+static struct regmap *cq93vc_get_regmap(struct device *dev)
 {
        struct davinci_vc *davinci_vc = codec->dev->platform_data;
 
index 8c0cec392dec95236a331e820c80ea2f01b18969..9029e20514e16c07ca929d71ff884cbf3369ada5 100644 (file)
@@ -727,7 +727,7 @@ static struct snd_soc_dai_driver mc13783_dai_sync[] = {
        }
 };
 
-struct regmap *mc13783_get_regmap(struct device *dev)
+static struct regmap *mc13783_get_regmap(struct device *dev)
 {
        return dev_get_regmap(dev->parent, NULL);
 }
index 961b7e8ac0dafe7f5206dc21277a5edcdbcfe0d6..f26befb0c297d5f4d99040424195d376e7a384ce 100644 (file)
@@ -231,7 +231,7 @@ static struct snd_soc_dai_driver si476x_dai = {
        .ops            = &si476x_dai_ops,
 };
 
-struct regmap *si476x_get_regmap(struct device *dev)
+static struct regmap *si476x_get_regmap(struct device *dev)
 {
        return dev_get_regmap(dev->parent, NULL);
 }
index aa60ba23b017447ac5a19408d093b2ee570a0963..7a046536ea681cfaef382569b3b6b7bafa5cf4ca 100644 (file)
@@ -1798,7 +1798,7 @@ static unsigned int wm5102_digital_vu[] = {
        ARIZONA_DAC_DIGITAL_VOLUME_5R,
 };
 
-struct regmap *wm5102_get_regmap(struct device *dev)
+static struct regmap *wm5102_get_regmap(struct device *dev)
 {
        struct wm5102_priv *priv = dev_get_drvdata(dev);
 
index 4be5f990a9d6376f543647e46ca715ae93c24326..97eb1bc5bea70f367b5e3200c7f75a2296ef5760 100644 (file)
@@ -1629,7 +1629,7 @@ static unsigned int wm5110_digital_vu[] = {
        ARIZONA_DAC_DIGITAL_VOLUME_6R,
 };
 
-struct regmap *wm5110_get_regmap(struct device *dev)
+static struct regmap *wm5110_get_regmap(struct device *dev)
 {
        struct wm5110_priv *priv = dev_get_drvdata(dev);
 
index 6b31a9f831371a468632045b53570cfe8f7fbc2e..1bd14b64a6c08c4486f888b8b69a2346154e63f9 100644 (file)
@@ -1606,7 +1606,7 @@ static int  wm8350_codec_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-struct regmap *wm8350_get_regmap(struct device *dev)
+static struct regmap *wm8350_get_regmap(struct device *dev)
 {
        struct wm8350 *wm8350 = dev_get_platdata(dev);
 
index e6410f2e8cacde8bd8079834d931c50ad120afab..5880d223e161205f18c4c117e5db3a499bc8b32d 100644 (file)
@@ -1359,7 +1359,7 @@ static int  wm8400_codec_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-struct regmap *wm8400_get_regmap(struct device *dev)
+static struct regmap *wm8400_get_regmap(struct device *dev)
 {
        struct wm8400 *wm8400 = dev_get_platdata(dev);
 
index daa4edcfe14a2f693b6bf9440f45afa0b02326a9..6f336da856c5055d360182de3556075b4d379580 100644 (file)
@@ -4432,7 +4432,7 @@ static int wm8994_codec_remove(struct snd_soc_codec *codec)
        return 0;
 }
 
-struct regmap *wm8994_get_regmap(struct device *dev)
+static struct regmap *wm8994_get_regmap(struct device *dev)
 {
        struct wm8994 *control = dev_get_drvdata(dev->parent);
 
index 3d50621b070c6d9f86b1896e6cdd4b8c85b8a298..09c4150840a320a8182ea496f91fa298b7ba0c75 100644 (file)
@@ -1081,7 +1081,7 @@ static unsigned int wm8997_digital_vu[] = {
        ARIZONA_DAC_DIGITAL_VOLUME_5R,
 };
 
-struct regmap *wm8997_get_regmap(struct device *dev)
+static struct regmap *wm8997_get_regmap(struct device *dev)
 {
        struct wm8997_priv *priv = dev_get_drvdata(dev);