Commit 716540fd authored by Wei Yongjun's avatar Wei Yongjun Committed by Mark Brown

ASoC: max9860: fix non static symbol warnings

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 3b2af7f7
...@@ -117,7 +117,7 @@ static bool max9860_precious(struct device *dev, unsigned int reg) ...@@ -117,7 +117,7 @@ static bool max9860_precious(struct device *dev, unsigned int reg)
return false; return false;
} }
const struct regmap_config max9860_regmap = { static const struct regmap_config max9860_regmap = {
.reg_bits = 8, .reg_bits = 8,
.val_bits = 8, .val_bits = 8,
...@@ -593,7 +593,7 @@ static int max9860_resume(struct device *dev) ...@@ -593,7 +593,7 @@ static int max9860_resume(struct device *dev)
} }
#endif #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) SET_RUNTIME_PM_OPS(max9860_suspend, max9860_resume, NULL)
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment