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

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 <javier.carrasco.cruz@gmail.com>
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://lore.kernel.org/r/20240704-mfd-const-regmap_config-v2-14-0c8785b1331d@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Javier Carrasco and committed by
Lee Jones
7206d721 a8c4b0c4

+1 -1
+1 -1
drivers/mfd/rohm-bd718x7.c
··· 60 60 REGMAP_IRQ_REG(BD718XX_INT_STBY_REQ, 0, BD718XX_INT_STBY_REQ_MASK), 61 61 }; 62 62 63 - static struct regmap_irq_chip bd718xx_irq_chip = { 63 + static const struct regmap_irq_chip bd718xx_irq_chip = { 64 64 .name = "bd718xx-irq", 65 65 .irqs = bd718xx_irqs, 66 66 .num_irqs = ARRAY_SIZE(bd718xx_irqs),