Skip to content

Commit

Permalink
ASoC: max9860: fix non static symbol warnings
Browse files Browse the repository at this point in the history
Fixes the following sparse warnings:

sound/soc/codecs/max9860.c:120:28: warning:
 symbol 'max9860_regmap' was not declared. Should it be static?
sound/soc/codecs/max9860.c:596:25: warning:
 symbol 'max9860_pm_ops' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Wei Yongjun authored and Mark Brown committed Jun 18, 2016
1 parent 3b2af7f commit 716540f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/codecs/max9860.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ static bool max9860_precious(struct device *dev, unsigned int reg)
return false;
}

const struct regmap_config max9860_regmap = {
static const struct regmap_config max9860_regmap = {
.reg_bits = 8,
.val_bits = 8,

Expand Down Expand Up @@ -593,7 +593,7 @@ static int max9860_resume(struct device *dev)
}
#endif

const struct dev_pm_ops max9860_pm_ops = {
static const struct dev_pm_ops max9860_pm_ops = {
SET_RUNTIME_PM_OPS(max9860_suspend, max9860_resume, NULL)
};

Expand Down

0 comments on commit 716540f

Please sign in to comment.