OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.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
58774ac
..
0dfd7fa
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,
};