linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] pinctrl: single: Constify irq_domain_ops
@ 2015-04-27 12:54 Krzysztof Kozlowski
  2015-04-27 12:54 ` [PATCH 2/2] gpio: " Krzysztof Kozlowski
  2015-05-06 13:33 ` [PATCH 1/2] pinctrl: single: " Linus Walleij
  0 siblings, 2 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2015-04-27 12:54 UTC (permalink / raw)
  To: Ray Jui, Linus Walleij, Alexandre Courbot,
	bcm-kernel-feedback-list, linux-gpio, linux-kernel
  Cc: Krzysztof Kozlowski

The irq_domain_ops are not modified by the driver and the irqdomain core
code accepts pointer to a const data.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
 drivers/pinctrl/pinctrl-single.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c
index 13b45f297727..968e352c595f 100644
--- a/drivers/pinctrl/pinctrl-single.c
+++ b/drivers/pinctrl/pinctrl-single.c
@@ -1726,7 +1726,7 @@ static int pcs_irqdomain_map(struct irq_domain *d, unsigned int irq,
 	return 0;
 }
 
-static struct irq_domain_ops pcs_irqdomain_ops = {
+static const struct irq_domain_ops pcs_irqdomain_ops = {
 	.map = pcs_irqdomain_map,
 	.xlate = irq_domain_xlate_onecell,
 };
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-06 13:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-27 12:54 [PATCH 1/2] pinctrl: single: Constify irq_domain_ops Krzysztof Kozlowski
2015-04-27 12:54 ` [PATCH 2/2] gpio: " Krzysztof Kozlowski
2015-05-06 13:34   ` Linus Walleij
2015-05-06 13:33 ` [PATCH 1/2] pinctrl: single: " Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).