ASoC: max9860: fix non static symbol warnings
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 17 Jun 2016 17:21:51 +0000 (17:21 +0000)
committerMark Brown <broonie@kernel.org>
Sat, 18 Jun 2016 13:09:00 +0000 (14:09 +0100)
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>
sound/soc/codecs/max9860.c

index 2b0dd6a18dad37079253512661da5c6658f0751c..68074c92a7c0c0ab09ecbd3fe53771910ce4180e 100644 (file)
@@ -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,
 
@@ -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)
 };