On Sat, Apr 28, 2018 at 09:48:52AM +0800, Shawn Lin wrote: > It seems host drivers which allocate IRQ domain for INTx > and the related code block looks highly similar to each other. > Add a new helper, pci_alloc_intx_irqd(), to avoid code duplication > as much as possible. > > Signed-off-by: Shawn Lin <shawn.lin@xxxxxxxxxxxxxx> Maybe add a _host to the name as in pci_host_alloc_intx_irqdomain, and potentially move it to a different file than irq.c, as that contains helpers for drivers.