Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Javier Carrasco and committed by
Mark Brown
32d11710 05db2e27

+1 -1
+1 -1
drivers/regulator/max77857-regulator.c
··· 67 67 } 68 68 } 69 69 70 - static struct regmap_config max77857_regmap_config = { 70 + static const struct regmap_config max77857_regmap_config = { 71 71 .reg_bits = 8, 72 72 .val_bits = 8, 73 73 .cache_type = REGCACHE_MAPLE,