aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Lin <[email protected]>2016-02-20 10:54:11 +0800
committerMark Brown <[email protected]>2016-02-21 03:09:54 +0900
commit250a99e70bf8628397901e10ad99a281dfc489d5 (patch)
treed9c041c697eadc21b79b9a553f932801ac66ac73
parent1b36e4a2ab0cfcc322153337d2615bc6fa922567 (diff)
ASoC: max9867: Constify max9867_reg and max9867_regmap
Signed-off-by: Axel Lin <[email protected]> Acked-by: anish kumar <[email protected]> Signed-off-by: Mark Brown <[email protected]>
-rwxr-xr-xsound/soc/codecs/max9867.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/max9867.c b/sound/soc/codecs/max9867.c
index 70b54069ad2a..ab7a94db8db7 100755
--- a/sound/soc/codecs/max9867.c
+++ b/sound/soc/codecs/max9867.c
@@ -436,7 +436,7 @@ static bool max9867_volatile_register(struct device *dev, unsigned int reg)
}
}
-static struct reg_default max9867_reg[] = {
+static const struct reg_default max9867_reg[] = {
{ 0x04, 0x00 },
{ 0x05, 0x00 },
{ 0x06, 0x00 },
@@ -459,7 +459,7 @@ static struct reg_default max9867_reg[] = {
{ 0x17, 0x00 },
};
-static struct regmap_config max9867_regmap = {
+static const struct regmap_config max9867_regmap = {
.reg_bits = 8,
.val_bits = 8,
.max_register = MAX9867_REVISION,