diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-10-01 01:14:27 +0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-03-13 16:32:29 +0300 |
commit | bedd30d986a05e32dc3eab874e4b9ed8a38058bb (patch) | |
tree | 2da3b52decc7f2c407d96664cd3be8c5659cc14c /include/linux/irqreturn.h | |
parent | c8e2aeef0b8ac9fb8821b8b3734c031579d0b77a (diff) | |
download | linux-bedd30d986a05e32dc3eab874e4b9ed8a38058bb.tar.xz |
genirq: make irqreturn_t an enum
Impact: cleanup
Remove the 2.4 compabiliy cruft
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'include/linux/irqreturn.h')
-rw-r--r-- | include/linux/irqreturn.h | 28 |
1 files changed, 10 insertions, 18 deletions
diff --git a/include/linux/irqreturn.h b/include/linux/irqreturn.h index 881883c2009d..c5584ca5b8c9 100644 --- a/include/linux/irqreturn.h +++ b/include/linux/irqreturn.h @@ -1,25 +1,17 @@ -/* irqreturn.h */ #ifndef _LINUX_IRQRETURN_H #define _LINUX_IRQRETURN_H -/* - * For 2.4.x compatibility, 2.4.x can use - * - * typedef void irqreturn_t; - * #define IRQ_NONE - * #define IRQ_HANDLED - * #define IRQ_RETVAL(x) - * - * To mix old-style and new-style irq handler returns. - * - * IRQ_NONE means we didn't handle it. - * IRQ_HANDLED means that we did have a valid interrupt and handled it. - * IRQ_RETVAL(x) selects on the two depending on x being non-zero (for handled) +/** + * enum irqreturn + * @IRQ_NONE interrupt was not from this device + * @IRQ_HANDLED interrupt was handled by this device */ -typedef int irqreturn_t; +enum irqreturn { + IRQ_NONE, + IRQ_HANDLED, +}; -#define IRQ_NONE (0) -#define IRQ_HANDLED (1) -#define IRQ_RETVAL(x) ((x) != 0) +typedef enum irqreturn irqreturn_t; +#define IRQ_RETVAL(x) ((x) != IRQ_NONE) #endif |