提交 22cc8378 编写于 作者: P Paul Mundt

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: NPaul Mundt <lethal@linux-sh.org>
上级 e735038f
......@@ -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;
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册