projects
/
firefly-linux-kernel-4.4.55.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 789acf5b31d3a17d2e6e2e75ca191d0c7b681173..01ffe7c56e5b44706b1114158d59d9746f4ba702 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;
/*