PCI/MSI: Reorder functions in msi.c
authorAhmed S. Darwish <darwi@linutronix.de>
Fri, 11 Nov 2022 13:55:06 +0000 (14:55 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 17 Nov 2022 14:15:21 +0000 (15:15 +0100)
commit12910ffd189e23d8996e0d19b723518accf57b76
tree7346b434f9d01c26873d37fa519dff08f9183237
parent88614075a952b1af50f5fb10c958e311f6b4f68a
PCI/MSI: Reorder functions in msi.c

There is no way to navigate msi.c without banging the head against the wall
every now and then because MSI and MSI-X specific functions are
intermingled and the code flow is completely non-obvious.

Reorder everthing so common helpers, MSI and MSI-X specific functions are
grouped together.

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20221111122015.459089736@linutronix.de
drivers/pci/msi/msi.c