Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a34b1c1 authored by Xiubo Li's avatar Xiubo Li Committed by Mark Brown
Browse files

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: default avatarXiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 964eafb1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);

+1 −1
Original line number Diff line number Diff line
@@ -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;

+1 −1
Original line number Diff line number Diff line
@@ -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);
}
+1 −1
Original line number Diff line number Diff line
@@ -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);
}
+1 −1
Original line number Diff line number Diff line
@@ -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);

Loading