Skip to content

Commit ee96750

Browse files
javiercarrascocruzlag-linaro
authored andcommitted
mfd: tps65090: Constify struct regmap_irq_chip
`tps65090_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]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent d6357e2 commit ee96750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/tps65090.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static const struct regmap_irq tps65090_irqs[] = {
120120
},
121121
};
122122

123-
static struct regmap_irq_chip tps65090_irq_chip = {
123+
static const struct regmap_irq_chip tps65090_irq_chip = {
124124
.name = "tps65090",
125125
.irqs = tps65090_irqs,
126126
.num_irqs = ARRAY_SIZE(tps65090_irqs),

0 commit comments

Comments
 (0)