projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b1704b
)
pinctrl: nuvoton: npcm7xx: constify copied structure
author
Julia Lawall
<Julia.Lawall@inria.fr>
Wed, 1 Jan 2020 07:43:34 +0000
(08:43 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Tue, 7 Jan 2020 12:55:55 +0000
(13:55 +0100)
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>
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c
b/drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c
index 22077cbe6880afd590cddfc96c91e44ac806e9ab..a935065cdac42393fb393daa332227f3059e61f8 100644
(file)
--- a/
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c
+++ b/
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c
@@
-331,7
+331,7
@@
static unsigned int npcmgpio_irq_startup(struct irq_data *d)
return 0;
}
-static struct irq_chip npcmgpio_irqchip = {
+static
const
struct irq_chip npcmgpio_irqchip = {
.name = "NPCM7XX-GPIO-IRQ",
.irq_ack = npcmgpio_irq_ack,
.irq_unmask = npcmgpio_irq_unmask,