aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/serial_sci.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2011-01-19 00:37:14 -0500
committerPaul Mundt <lethal@linux-sh.org>2011-01-19 00:37:14 -0500
commit22cc83780e214f4f009384f9c1d0658629625d49 (patch)
treee9cf3c6889efb809c0d98bc1b9d5a0572405cf47 /include/linux/serial_sci.h
parente735038f3848a720f84a819c8191ed2f6a1beed8 (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.h8
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
37struct device; 45struct device;
38 46
39/* 47/*