Skip to contentSkip to conversation

irqdomain: Add an accessor for the of_node field

PATCH New Marc Zyngier 2 participants 2 messages Oct 9, 2015 IRQ domains (IRQ number mapping library)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 include/linux/irqdomain.h | 5 +++++
 1 file changed, 5 insertions(+)
include/linux/irqdomain.h +5 -0
index d3ca792..f644fdb 100644
@@ -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,
Signature · 1 line
2.1.4
#1 lore raw
irqdomain: Add an accessor for the of_node field
Commit-ID:  10abc7df9277a81971924a6c03f74e86d799daf1
Gitweb:     http://git.kernel.org/tip/10abc7df9277a81971924a6c03f74e86d799daf1
Author:     Marc Zyngier <[email protected]>
AuthorDate: Fri, 9 Oct 2015 15:50:11 +0100
Committer:  Thomas Gleixner <[email protected]>
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.

---
 include/linux/irqdomain.h | 5 +++++
 1 file changed, 5 insertions(+)
include/linux/irqdomain.h +5 -0
index d3ca792..f644fdb 100644
@@ -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,