aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-03-11 14:15:35 +0100
committerThomas Gleixner <tglx@linutronix.de>2011-03-11 14:15:35 +0100
commitd9936bb3952a08d701f7b03f8f62d158f94d8085 (patch)
tree6d6e5f45fd36340a4027d8e866a8f7ec9eaac881 /include
parentc68fd4f3ca90de7d18c567e70b2c164078aefadf (diff)
genirq: Add desc->irq_data accessor
We have accessors for all fields in irq_data based on irq_desc, but not for irq_data itself. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/irqdesc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h
index 9eb9cd31305..00218371518 100644
--- a/include/linux/irqdesc.h
+++ b/include/linux/irqdesc.h
@@ -109,6 +109,11 @@ static inline struct irq_desc *move_irq_desc(struct irq_desc *desc, int node)
#ifdef CONFIG_GENERIC_HARDIRQS
+static inline struct irq_data *irq_desc_get_irq_data(struct irq_desc *desc)
+{
+ return &desc->irq_data;
+}
+
static inline struct irq_chip *irq_desc_get_chip(struct irq_desc *desc)
{
return desc->irq_data.chip;