Skip to content

Commit 691277c

Browse files
javiercarrascocruzlag-linaro
authored andcommitted
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 <[email protected]> Reviewed-by: Baolin Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent ef29932 commit 691277c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/sprd-sc27xx-spi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static int sprd_pmic_spi_read(void *context,
135135
return 0;
136136
}
137137

138-
static struct regmap_bus sprd_pmic_regmap = {
138+
static const struct regmap_bus sprd_pmic_regmap = {
139139
.write = sprd_pmic_spi_write,
140140
.read = sprd_pmic_spi_read,
141141
.reg_format_endian_default = REGMAP_ENDIAN_NATIVE,

0 commit comments

Comments
 (0)