diff options
author | Paul Mundt <lethal@linux-sh.org> | 2011-01-19 00:37:14 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-01-19 00:37:14 -0500 |
commit | 22cc83780e214f4f009384f9c1d0658629625d49 (patch) | |
tree | e9cf3c6889efb809c0d98bc1b9d5a0572405cf47 /include/linux/serial_sci.h | |
parent | e735038f3848a720f84a819c8191ed2f6a1beed8 (diff) |
serial: sh-sci: Provide a helper for muxed IRQs.
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>
Diffstat (limited to 'include/linux/serial_sci.h')
-rw-r--r-- | include/linux/serial_sci.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/serial_sci.h b/include/linux/serial_sci.h index 789acf5b31d3..01ffe7c56e5b 100644 --- a/include/linux/serial_sci.h +++ b/include/linux/serial_sci.h | |||
@@ -34,6 +34,14 @@ enum { | |||
34 | SCIx_NR_IRQS, | 34 | SCIx_NR_IRQS, |
35 | }; | 35 | }; |
36 | 36 | ||
37 | #define SCIx_IRQ_MUXED(irq) \ | ||
38 | { \ | ||
39 | [SCIx_ERI_IRQ] = (irq), \ | ||
40 | [SCIx_RXI_IRQ] = (irq), \ | ||
41 | [SCIx_TXI_IRQ] = (irq), \ | ||
42 | [SCIx_BRI_IRQ] = (irq), \ | ||
43 | } | ||
44 | |||
37 | struct device; | 45 | struct device; |
38 | 46 | ||
39 | /* | 47 | /* |