aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Carrasco <[email protected]>2024-07-04 20:13:08 +0200
committerMark Brown <[email protected]>2024-07-04 19:15:55 +0100
commit32d1171014a74c788218e0a8a5fd6fef65fb10ba (patch)
tree40ed0867637abd4d41f2010eda9edcbb09992d02
parent05db2e27b92302a43f996561dbb58ecabc3cc85d (diff)
regulator: max77857: Constify struct regmap_config
`max77857_remgap_config` is not modified and can be declared as const to move its data to a read-only section. Signed-off-by: Javier Carrasco <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--drivers/regulator/max77857-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/max77857-regulator.c b/drivers/regulator/max77857-regulator.c
index 145ad0281857..bc28dc8503a8 100644
--- a/drivers/regulator/max77857-regulator.c
+++ b/drivers/regulator/max77857-regulator.c
@@ -67,7 +67,7 @@ static bool max77857_volatile_reg(struct device *dev, unsigned int reg)
}
}
-static struct regmap_config max77857_regmap_config = {
+static const struct regmap_config max77857_regmap_config = {
.reg_bits = 8,
.val_bits = 8,
.cache_type = REGCACHE_MAPLE,