Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1243453 > unrolled thread

[PATCH] irqdomain: Add an accessor for the of_node field

Started byMarc Zyngier <marc.zyngier@arm.com>
First post2015-10-09 17:00 +0200
Last post2015-10-09 17:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] irqdomain: Add an accessor for the of_node field Marc Zyngier <marc.zyngier@arm.com> - 2015-10-09 17:00 +0200
    [tip:irq/urgent] irqdomain: Add an accessor for the of_node field tip-bot for Marc Zyngier <tipbot@zytor.com> - 2015-10-09 17:30 +0200

#1243453 — [PATCH] irqdomain: Add an accessor for the of_node field

FromMarc Zyngier <marc.zyngier@arm.com>
Date2015-10-09 17:00 +0200
Subject[PATCH] irqdomain: Add an accessor for the of_node field
Message-ID<qhHjk-5g5-17@gated-at.bofh.it>
As we're about to remove the of_node field from the irqdomain
structure, introduce an accessor for it. Subsequent patches
will take care of the actual repainting.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
---
 include/linux/irqdomain.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
index d3ca792..f644fdb 100644
--- a/include/linux/irqdomain.h
+++ b/include/linux/irqdomain.h
@@ -161,6 +161,11 @@ enum {
 	IRQ_DOMAIN_FLAG_NONCORE		= (1 << 16),
 };
 
+static inline struct device_node *irq_domain_get_of_node(struct irq_domain *d)
+{
+	return d->of_node;
+}
+
 #ifdef CONFIG_IRQ_DOMAIN
 struct irq_domain *__irq_domain_add(struct device_node *of_node, int size,
 				    irq_hw_number_t hwirq_max, int direct_max,
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1243471 — [tip:irq/urgent] irqdomain: Add an accessor for the of_node field

Fromtip-bot for Marc Zyngier <tipbot@zytor.com>
Date2015-10-09 17:30 +0200
Subject[tip:irq/urgent] irqdomain: Add an accessor for the of_node field
Message-ID<qhHMm-63K-27@gated-at.bofh.it>
In reply to#1243453
Commit-ID:  10abc7df9277a81971924a6c03f74e86d799daf1
Gitweb:     http://git.kernel.org/tip/10abc7df9277a81971924a6c03f74e86d799daf1
Author:     Marc Zyngier <marc.zyngier@arm.com>
AuthorDate: Fri, 9 Oct 2015 15:50:11 +0100
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Fri, 9 Oct 2015 17:17:30 +0200

irqdomain: Add an accessor for the of_node field

As we're about to remove the of_node field from the irqdomain
structure, introduce an accessor for it. Subsequent patches
will take care of the actual repainting.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Link: http://lkml.kernel.org/r/1444402211-1141-1-git-send-email-marc.zyngier@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 include/linux/irqdomain.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
index d3ca792..f644fdb 100644
--- a/include/linux/irqdomain.h
+++ b/include/linux/irqdomain.h
@@ -161,6 +161,11 @@ enum {
 	IRQ_DOMAIN_FLAG_NONCORE		= (1 << 16),
 };
 
+static inline struct device_node *irq_domain_get_of_node(struct irq_domain *d)
+{
+	return d->of_node;
+}
+
 #ifdef CONFIG_IRQ_DOMAIN
 struct irq_domain *__irq_domain_add(struct device_node *of_node, int size,
 				    irq_hw_number_t hwirq_max, int direct_max,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web