projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8bfcb0
)
pinctrl: sunxi: constify irq_domain_ops
author
Tobias Klauser
<tklauser@distanz.ch>
Fri, 2 Jun 2017 11:29:58 +0000
(13:29 +0200)
committer
Linus Walleij
<linus.walleij@linaro.org>
Fri, 9 Jun 2017 08:58:58 +0000
(10:58 +0200)
struct irq_domain_ops is not modified, so it can be made const.
Suggested-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sunxi.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/sunxi/pinctrl-sunxi.c
b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
index 58774acfc8144ce5f924e78161793a758bdea702..0dfd7fa66c48c7a3a0743833ba8ddaa4d6f31569 100644
(file)
--- a/
drivers/pinctrl/sunxi/pinctrl-sunxi.c
+++ b/
drivers/pinctrl/sunxi/pinctrl-sunxi.c
@@
-979,7
+979,7
@@
static int sunxi_pinctrl_irq_of_xlate(struct irq_domain *d,
return 0;
}
-static struct irq_domain_ops sunxi_pinctrl_irq_domain_ops = {
+static
const
struct irq_domain_ops sunxi_pinctrl_irq_domain_ops = {
.xlate = sunxi_pinctrl_irq_of_xlate,
};