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>
This commit is contained in:
Paul Mundt 2011-01-19 14:37:14 +09:00
parent e735038f38
commit 22cc83780e
1 changed files with 8 additions and 0 deletions

View File

@ -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;
/*