Skip to content

Commit 4611e73

Browse files
JuliaLawalllinusw
authored andcommitted
pinctrl: nuvoton: npcm7xx: constify copied structure
The npcmgpio_irqchip structure is only copied into another structure, so make it const. The opportunity for this change was found using Coccinelle. Signed-off-by: Julia Lawall <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 8b1704b commit 4611e73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ static unsigned int npcmgpio_irq_startup(struct irq_data *d)
331331
return 0;
332332
}
333333

334-
static struct irq_chip npcmgpio_irqchip = {
334+
static const struct irq_chip npcmgpio_irqchip = {
335335
.name = "NPCM7XX-GPIO-IRQ",
336336
.irq_ack = npcmgpio_irq_ack,
337337
.irq_unmask = npcmgpio_irq_unmask,

0 commit comments

Comments
 (0)