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 <javier.carrasco.cruz@gmail.com> Link: https://patch.msgid.link/20240704-regulator-const-regmap-v1-2-bce0ddef63ea@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 05db2e2 commit 32d1171

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)