Skip to content

Commit 7206d72

Browse files
javiercarrascocruzlag-linaro
authored andcommitted
mfd: rohm-bd718x7: Constify struct regmap_irq_chip
`bd718xx_irq_chip` 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: Matti Vaittinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent a8c4b0c commit 7206d72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/rohm-bd718x7.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static const struct regmap_irq bd718xx_irqs[] = {
6060
REGMAP_IRQ_REG(BD718XX_INT_STBY_REQ, 0, BD718XX_INT_STBY_REQ_MASK),
6161
};
6262

63-
static struct regmap_irq_chip bd718xx_irq_chip = {
63+
static const struct regmap_irq_chip bd718xx_irq_chip = {
6464
.name = "bd718xx-irq",
6565
.irqs = bd718xx_irqs,
6666
.num_irqs = ARRAY_SIZE(bd718xx_irqs),

0 commit comments

Comments
 (0)