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

mfd: sprd-sc27xx-spi: Constify struct regmap_bus

`sprd_pmic_regmap` 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>
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20240704-mfd-const-regmap_config-v2-24-0c8785b1331d@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Javier Carrasco and committed by
Lee Jones
691277c9 ef299323

+1 -1
+1 -1
drivers/mfd/sprd-sc27xx-spi.c
··· 135 135 return 0; 136 136 } 137 137 138 - static struct regmap_bus sprd_pmic_regmap = { 138 + static const struct regmap_bus sprd_pmic_regmap = { 139 139 .write = sprd_pmic_spi_write, 140 140 .read = sprd_pmic_spi_read, 141 141 .reg_format_endian_default = REGMAP_ENDIAN_NATIVE,