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

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 <Julia.Lawall@inria.fr>

Link: https://lore.kernel.org/r/1577864614-5543-17-git-send-email-Julia.Lawall@inria.fr
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Julia Lawall and committed by
Linus Walleij
4611e73f 8b1704bd

+1 -1
+1 -1
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c
··· 331 331 return 0; 332 332 } 333 333 334 - static struct irq_chip npcmgpio_irqchip = { 334 + static const struct irq_chip npcmgpio_irqchip = { 335 335 .name = "NPCM7XX-GPIO-IRQ", 336 336 .irq_ack = npcmgpio_irq_ack, 337 337 .irq_unmask = npcmgpio_irq_unmask,