diff options
author | Jiang Liu <jiang.liu@linux.intel.com> | 2014-11-09 10:10:24 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2014-11-23 07:01:46 -0500 |
commit | 1b5377087cb4e68d719a875120894fddfbcbf0f9 (patch) | |
tree | cbb23eafc421dc6dc432e730502a95dcf52ad250 /include/linux | |
parent | 75ffc0075007ca649131a2c42863ce6995d9bf80 (diff) |
genirq: Introduce helper irq_domain_set_info() to reduce duplicated code
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Yingjoe Chen <yingjoe.chen@mediatek.com>
Cc: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/irqdomain.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h index f8563dcfd254..7aca1adb68a1 100644 --- a/include/linux/irqdomain.h +++ b/include/linux/irqdomain.h | |||
@@ -33,6 +33,7 @@ | |||
33 | #define _LINUX_IRQDOMAIN_H | 33 | #define _LINUX_IRQDOMAIN_H |
34 | 34 | ||
35 | #include <linux/types.h> | 35 | #include <linux/types.h> |
36 | #include <linux/irqhandler.h> | ||
36 | #include <linux/radix-tree.h> | 37 | #include <linux/radix-tree.h> |
37 | 38 | ||
38 | struct device_node; | 39 | struct device_node; |
@@ -273,6 +274,10 @@ extern int irq_domain_set_hwirq_and_chip(struct irq_domain *domain, | |||
273 | irq_hw_number_t hwirq, | 274 | irq_hw_number_t hwirq, |
274 | struct irq_chip *chip, | 275 | struct irq_chip *chip, |
275 | void *chip_data); | 276 | void *chip_data); |
277 | extern void irq_domain_set_info(struct irq_domain *domain, unsigned int virq, | ||
278 | irq_hw_number_t hwirq, struct irq_chip *chip, | ||
279 | void *chip_data, irq_flow_handler_t handler, | ||
280 | void *handler_data, const char *handler_name); | ||
276 | extern void irq_domain_reset_irq_data(struct irq_data *irq_data); | 281 | extern void irq_domain_reset_irq_data(struct irq_data *irq_data); |
277 | extern void irq_domain_free_irqs_common(struct irq_domain *domain, | 282 | extern void irq_domain_free_irqs_common(struct irq_domain *domain, |
278 | unsigned int virq, | 283 | unsigned int virq, |