diff options
author | Jiang Liu <[email protected]> | 2015-06-04 12:13:26 +0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2015-06-26 21:28:32 +0200 |
commit | 304adf8a8fff972f633bf52b3d160682d3f3d5d2 (patch) | |
tree | f57d511e52548dc5a385cb4ad3e61ccc6be4e4fb | |
parent | 08dad486d98e55d49b760cbaa20b71f35566d4e6 (diff) |
genirq: Introduce helper irq_desc_get_irq()
Introduce helper irq_desc_get_irq() to retrieve the irq number from
the irq descriptor.
Signed-off-by: Jiang Liu <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Randy Dunlap <[email protected]>
Cc: Yinghai Lu <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Marc Zyngier <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
-rw-r--r-- | include/linux/irqdesc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/irqdesc.h b/include/linux/irqdesc.h index 66c41b40ca50..a72bfd94ea10 100644 --- a/include/linux/irqdesc.h +++ b/include/linux/irqdesc.h @@ -100,6 +100,11 @@ static inline struct irq_desc *irq_data_to_desc(struct irq_data *data) #endif } +static inline unsigned int irq_desc_get_irq(struct irq_desc *desc) +{ + return desc->irq_data.irq; +} + static inline struct irq_data *irq_desc_get_irq_data(struct irq_desc *desc) { return &desc->irq_data; |