Skip to content

Commit 9842c62

Browse files
javiercarrascocruzlag-linaro
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent c3bd9a0 commit 9842c62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/mfd/intel-m10-bmc-pmci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ static const struct regmap_access_table m10bmc_pmci_access_table = {
336336
.n_yes_ranges = ARRAY_SIZE(m10bmc_pmci_regmap_range),
337337
};
338338

339-
static struct regmap_config m10bmc_pmci_regmap_config = {
339+
static const struct regmap_config m10bmc_pmci_regmap_config = {
340340
.reg_bits = 32,
341341
.reg_stride = 4,
342342
.val_bits = 32,

drivers/mfd/intel-m10-bmc-spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ static const struct regmap_access_table m10bmc_access_table = {
2424
.n_yes_ranges = ARRAY_SIZE(m10bmc_regmap_range),
2525
};
2626

27-
static struct regmap_config intel_m10bmc_regmap_config = {
27+
static const struct regmap_config intel_m10bmc_regmap_config = {
2828
.reg_bits = 32,
2929
.val_bits = 32,
3030
.reg_stride = 4,

0 commit comments

Comments
 (0)