Skip to content

Commit 687d1a4

Browse files
javiercarrascocruzlag-linaro
authored andcommitted
mfd: tps65218: Constify struct regmap_irq_chip
`tps65218_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 ee96750 commit 687d1a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mfd/tps65218.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ static const struct regmap_irq tps65218_irqs[] = {
186186
},
187187
};
188188

189-
static struct regmap_irq_chip tps65218_irq_chip = {
189+
static const struct regmap_irq_chip tps65218_irq_chip = {
190190
.name = "tps65218",
191191
.irqs = tps65218_irqs,
192192
.num_irqs = ARRAY_SIZE(tps65218_irqs),

0 commit comments

Comments
 (0)