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

Configure Feed

Select the types of activity you want to include in your feed.

mfd: intel-m10-bmc: Constify struct regmap_config

`m10bmc_pmci_regmap_config` and `intel_m10bmc_regmap_config` are not
modified and can be declared as const to move their data to a
read-only section.

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20240704-mfd-const-regmap_config-v2-7-0c8785b1331d@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Javier Carrasco and committed by
Lee Jones
9842c621 c3bd9a0f

+2 -2
+1 -1
drivers/mfd/intel-m10-bmc-pmci.c
··· 336 336 .n_yes_ranges = ARRAY_SIZE(m10bmc_pmci_regmap_range), 337 337 }; 338 338 339 - static struct regmap_config m10bmc_pmci_regmap_config = { 339 + static const struct regmap_config m10bmc_pmci_regmap_config = { 340 340 .reg_bits = 32, 341 341 .reg_stride = 4, 342 342 .val_bits = 32,
+1 -1
drivers/mfd/intel-m10-bmc-spi.c
··· 24 24 .n_yes_ranges = ARRAY_SIZE(m10bmc_regmap_range), 25 25 }; 26 26 27 - static struct regmap_config intel_m10bmc_regmap_config = { 27 + static const struct regmap_config intel_m10bmc_regmap_config = { 28 28 .reg_bits = 32, 29 29 .val_bits = 32, 30 30 .reg_stride = 4,