From: Paul Mundt Date: Wed, 19 Jan 2011 05:37:14 +0000 (+0900) Subject: serial: sh-sci: Provide a helper for muxed IRQs. X-Git-Tag: v2.6.39-rc1~456^2~17^3~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22cc83780e214f4f009384f9c1d0658629625d49;p=profile%2Fivi%2Fkernel-x86-ivi.git 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 --- diff --git a/include/linux/serial_sci.h b/include/linux/serial_sci.h index 789acf5..01ffe7c 100644 --- 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; /*