Skip to content

Commit 32d1171

Browse files
javiercarrascocruzbroonie
authored andcommitted
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]>
1 parent 05db2e2 commit 32d1171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/regulator/max77857-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static bool max77857_volatile_reg(struct device *dev, unsigned int reg)
6767
}
6868
}
6969

70-
static struct regmap_config max77857_regmap_config = {
70+
static const struct regmap_config max77857_regmap_config = {
7171
.reg_bits = 8,
7272
.val_bits = 8,
7373
.cache_type = REGCACHE_MAPLE,

0 commit comments

Comments
 (0)