serial: sh-sci: Provide a helper for muxed IRQs.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 19 Jan 2011 05:37:14 +0000 (14:37 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 19 Jan 2011 05:37:14 +0000 (14:37 +0900)
All of the muxed IRQs presently populate the IRQ array verbosely, this
simply provides a trivial helper to do it for them.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/linux/serial_sci.h

index 789acf5b31d3a17d2e6e2e75ca191d0c7b681173..01ffe7c56e5b44706b1114158d59d9746f4ba702 100644 (file)
@@ -34,6 +34,14 @@ enum {
        SCIx_NR_IRQS,
 };
 
        SCIx_NR_IRQS,
 };
 
+#define SCIx_IRQ_MUXED(irq)            \
+{                                      \
+       [SCIx_ERI_IRQ]  = (irq),        \
+       [SCIx_RXI_IRQ]  = (irq),        \
+       [SCIx_TXI_IRQ]  = (irq),        \
+       [SCIx_BRI_IRQ]  = (irq),        \
+}
+
 struct device;
 
 /*
 struct device;
 
 /*