Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1656150 > unrolled thread
| Started by | Tobias Klauser <tklauser@distanz.ch> |
|---|---|
| First post | 2017-06-02 13:40 +0200 |
| Last post | 2017-06-02 14:10 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] pinctrl: sunxi: constify irq_domain_ops Tobias Klauser <tklauser@distanz.ch> - 2017-06-02 13:40 +0200
Re: [PATCH] pinctrl: sunxi: constify irq_domain_ops Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-06-02 14:10 +0200
| From | Tobias Klauser <tklauser@distanz.ch> |
|---|---|
| Date | 2017-06-02 13:40 +0200 |
| Subject | [PATCH] pinctrl: sunxi: constify irq_domain_ops |
| Message-ID | <tNT5U-rX-19@gated-at.bofh.it> |
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>
---
drivers/pinctrl/sunxi/pinctrl-sunxi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
index 58774acfc814..0dfd7fa66c48 100644
--- 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,
};
--
2.13.0
[toc] | [next] | [standalone]
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Date | 2017-06-02 14:10 +0200 |
| Message-ID | <tNTyV-RF-13@gated-at.bofh.it> |
| In reply to | #1656150 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Jun 02, 2017 at 01:29:58PM +0200, Tobias Klauser wrote: > 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> Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web