summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/intel-m10-bmc-spi.c
diff options
context:
space:
mode:
authorJavier Carrasco <javier.carrasco.cruz@gmail.com>2024-07-04 19:23:17 +0200
committerLee Jones <lee@kernel.org>2024-08-30 10:40:11 +0200
commit9842c62162858c7b0625dd3e00085b68167257d3 (patch)
tree7fa1435def09a457a11eb227cf48b012eb7f2cf8 /drivers/mfd/intel-m10-bmc-spi.c
parentmfd: rohm-bd9576: Constify read-only regmap structs (diff)
downloadlinux-9842c62162858c7b0625dd3e00085b68167257d3.tar.xz
linux-9842c62162858c7b0625dd3e00085b68167257d3.zip
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>
Diffstat (limited to 'drivers/mfd/intel-m10-bmc-spi.c')
-rw-r--r--drivers/mfd/intel-m10-bmc-spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/intel-m10-bmc-spi.c b/drivers/mfd/intel-m10-bmc-spi.c
index d64d28199df6..36f631ef7a67 100644
--- a/drivers/mfd/intel-m10-bmc-spi.c
+++ b/drivers/mfd/intel-m10-bmc-spi.c
@@ -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,