Skip to content

Commit 657eb79

Browse files
javiercarrascocruzlag-linaro
authored andcommitted
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 <[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 2a9f899 commit 657eb79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/mfd/bd9571mwv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static const struct regmap_irq bd9571mwv_irqs[] = {
9393
BD9571MWV_INT_INTREQ_BKUP_TRG_INT),
9494
};
9595

96-
static struct regmap_irq_chip bd9571mwv_irq_chip = {
96+
static const struct regmap_irq_chip bd9571mwv_irq_chip = {
9797
.name = "bd9571mwv",
9898
.status_base = BD9571MWV_INT_INTREQ,
9999
.mask_base = BD9571MWV_INT_INTMASK,
@@ -159,7 +159,7 @@ static const struct regmap_config bd9574mwf_regmap_config = {
159159
.max_register = 0xff,
160160
};
161161

162-
static struct regmap_irq_chip bd9574mwf_irq_chip = {
162+
static const struct regmap_irq_chip bd9574mwf_irq_chip = {
163163
.name = "bd9574mwf",
164164
.status_base = BD9571MWV_INT_INTREQ,
165165
.mask_base = BD9571MWV_INT_INTMASK,

0 commit comments

Comments
 (0)