aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/irq.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-02-14 14:09:19 -0500
committerThomas Gleixner <tglx@linutronix.de>2011-02-19 06:58:23 -0500
commit3836ca08aad4575c120ccf328652f3873eea9063 (patch)
treed5aa92880d2a44836cb7f3decdae761d0a780068 /include/linux/irq.h
parent02725e7471b8dd58fa96f6604bdb5dde45405a2e (diff)
genirq: Consolidate set_chip_handler functions
No need to have separate functions if we have one plus inline wrappers. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r--include/linux/irq.h51
1 files changed, 39 insertions, 12 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h
index c101ad4b821f..3e29e2f42e04 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -398,23 +398,23 @@ extern struct irq_chip no_irq_chip;
398extern struct irq_chip dummy_irq_chip; 398extern struct irq_chip dummy_irq_chip;
399 399
400extern void 400extern void
401set_irq_chip_and_handler(unsigned int irq, struct irq_chip *chip, 401irq_set_chip_and_handler_name(unsigned int irq, struct irq_chip *chip,
402 irq_flow_handler_t handle);
403extern void
404set_irq_chip_and_handler_name(unsigned int irq, struct irq_chip *chip,
405 irq_flow_handler_t handle, const char *name); 402 irq_flow_handler_t handle, const char *name);
406 403
404static inline void irq_set_chip_and_handler(unsigned int irq, struct irq_chip *chip,
405 irq_flow_handler_t handle)
406{
407 irq_set_chip_and_handler_name(irq, chip, handle, NULL);
408}
409
407extern void 410extern void
408__set_irq_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained, 411__irq_set_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained,
409 const char *name); 412 const char *name);
410 413
411/*
412 * Set a highlevel flow handler for a given IRQ:
413 */
414static inline void 414static inline void
415set_irq_handler(unsigned int irq, irq_flow_handler_t handle) 415irq_set_handler(unsigned int irq, irq_flow_handler_t handle)
416{ 416{
417 __set_irq_handler(irq, handle, 0, NULL); 417 __irq_set_handler(irq, handle, 0, NULL);
418} 418}
419 419
420/* 420/*
@@ -423,9 +423,9 @@ set_irq_handler(unsigned int irq, irq_flow_handler_t handle)
423 * IRQ_NOREQUEST and IRQ_NOPROBE) 423 * IRQ_NOREQUEST and IRQ_NOPROBE)
424 */ 424 */
425static inline void 425static inline void
426set_irq_chained_handler(unsigned int irq, irq_flow_handler_t handle) 426irq_set_chained_handler(unsigned int irq, irq_flow_handler_t handle)
427{ 427{
428 __set_irq_handler(irq, handle, 1, NULL); 428 __irq_set_handler(irq, handle, 1, NULL);
429} 429}
430 430
431void irq_modify_status(unsigned int irq, unsigned long clr, unsigned long set); 431void irq_modify_status(unsigned int irq, unsigned long clr, unsigned long set);
@@ -579,6 +579,33 @@ static inline void set_irq_nested_thread(unsigned int irq, int nest)
579{ 579{
580 irq_set_nested_thread(irq, nest); 580 irq_set_nested_thread(irq, nest);
581} 581}
582static inline void
583set_irq_chip_and_handler_name(unsigned int irq, struct irq_chip *chip,
584 irq_flow_handler_t handle, const char *name)
585{
586 irq_set_chip_and_handler_name(irq, chip, handle, name);
587}
588static inline void
589set_irq_chip_and_handler(unsigned int irq, struct irq_chip *chip,
590 irq_flow_handler_t handle)
591{
592 irq_set_chip_and_handler(irq, chip, handle);
593}
594static inline void
595__set_irq_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained,
596 const char *name)
597{
598 __irq_set_handler(irq, handle, is_chained, name);
599}
600static inline void set_irq_handler(unsigned int irq, irq_flow_handler_t handle)
601{
602 irq_set_handler(irq, handle);
603}
604static inline void
605set_irq_chained_handler(unsigned int irq, irq_flow_handler_t handle)
606{
607 irq_set_chained_handler(irq, handle);
608}
582#endif 609#endif
583 610
584int irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node); 611int irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node);