Skip to content

Commit 2f6a45c

Browse files
javiercarrascocruzlag-linaro
authored andcommitted
mfd: hi655x-pmic: Constify struct regmap_config
`hi655x_regmap_config` 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]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 6a68c7d commit 2f6a45c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/hi655x-pmic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static const struct regmap_irq_chip hi655x_irq_chip = {
4141
.mask_base = HI655X_IRQ_MASK_BASE,
4242
};
4343

44-
static struct regmap_config hi655x_regmap_config = {
44+
static const struct regmap_config hi655x_regmap_config = {
4545
.reg_bits = 32,
4646
.reg_stride = HI655X_STRIDE,
4747
.val_bits = 8,

0 commit comments

Comments
 (0)