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

mfd: bd9571mwv: Constify struct regmap_irq_chip

`bd9571mwv_irq_chip` and `bd9574mwf_irq_chip` are not modified and can
be declared as const to move their 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-9-0c8785b1331d@gmail.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Javier Carrasco and committed by
Lee Jones
657eb79a 2a9f8995

+2 -2
+2 -2
drivers/mfd/bd9571mwv.c
··· 93 93 BD9571MWV_INT_INTREQ_BKUP_TRG_INT), 94 94 }; 95 95 96 - static struct regmap_irq_chip bd9571mwv_irq_chip = { 96 + static const struct regmap_irq_chip bd9571mwv_irq_chip = { 97 97 .name = "bd9571mwv", 98 98 .status_base = BD9571MWV_INT_INTREQ, 99 99 .mask_base = BD9571MWV_INT_INTMASK, ··· 159 159 .max_register = 0xff, 160 160 }; 161 161 162 - static struct regmap_irq_chip bd9574mwf_irq_chip = { 162 + static const struct regmap_irq_chip bd9574mwf_irq_chip = { 163 163 .name = "bd9574mwf", 164 164 .status_base = BD9571MWV_INT_INTREQ, 165 165 .mask_base = BD9571MWV_INT_INTMASK,