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>
This commit is contained in:
Javier Carrasco 2024-07-04 20:13:08 +02:00 committed by Mark Brown
parent 05db2e27b9
commit 32d1171014
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -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,