]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mfd: intel-m10-bmc: Constify struct regmap_config
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>
Thu, 4 Jul 2024 17:23:17 +0000 (19:23 +0200)
committerLee Jones <lee@kernel.org>
Fri, 30 Aug 2024 08:40:11 +0000 (09:40 +0100)
`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>
drivers/mfd/intel-m10-bmc-pmci.c
drivers/mfd/intel-m10-bmc-spi.c

index 698c5933938b79bc86884f2c9dbab5cca1de2e3b..4fa9d380c62b5f8cf034baae3f9b57411db27124 100644 (file)
@@ -336,7 +336,7 @@ static const struct regmap_access_table m10bmc_pmci_access_table = {
        .n_yes_ranges   = ARRAY_SIZE(m10bmc_pmci_regmap_range),
 };
 
-static struct regmap_config m10bmc_pmci_regmap_config = {
+static const struct regmap_config m10bmc_pmci_regmap_config = {
        .reg_bits = 32,
        .reg_stride = 4,
        .val_bits = 32,
index d64d28199df656557aaec6c27522352bf995a9c3..36f631ef7a6774607ce5ecd3b1e93983906ffb48 100644 (file)
@@ -24,7 +24,7 @@ static const struct regmap_access_table m10bmc_access_table = {
        .n_yes_ranges   = ARRAY_SIZE(m10bmc_regmap_range),
 };
 
-static struct regmap_config intel_m10bmc_regmap_config = {
+static const struct regmap_config intel_m10bmc_regmap_config = {
        .reg_bits = 32,
        .val_bits = 32,
        .reg_stride = 4,