Skip to content

Commit 716540f

Browse files
Wei Yongjunbroonie
authored andcommitted
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: Wei Yongjun <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 3b2af7f commit 716540f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/codecs/max9860.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ static bool max9860_precious(struct device *dev, unsigned int reg)
117117
return false;
118118
}
119119

120-
const struct regmap_config max9860_regmap = {
120+
static const struct regmap_config max9860_regmap = {
121121
.reg_bits = 8,
122122
.val_bits = 8,
123123

@@ -593,7 +593,7 @@ static int max9860_resume(struct device *dev)
593593
}
594594
#endif
595595

596-
const struct dev_pm_ops max9860_pm_ops = {
596+
static const struct dev_pm_ops max9860_pm_ops = {
597597
SET_RUNTIME_PM_OPS(max9860_suspend, max9860_resume, NULL)
598598
};
599599

0 commit comments

Comments
 (0)