projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e735038
)
serial: sh-sci: Provide a helper for muxed IRQs.
author
Paul Mundt
<lethal@linux-sh.org>
Wed, 19 Jan 2011 05:37:14 +0000
(14:37 +0900)
committer
Paul 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
patch
|
blob
|
history
diff --git
a/include/linux/serial_sci.h
b/include/linux/serial_sci.h
index
789acf5
..
01ffe7c
100644
(file)
--- a/
include/linux/serial_sci.h
+++ b/
include/linux/serial_sci.h
@@
-34,6
+34,14
@@
enum {
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;
/*