PCI/MSI: Move pci_disable_msi() to api.c
authorAhmed S. Darwish <darwi@linutronix.de>
Fri, 11 Nov 2022 13:54:45 +0000 (14:54 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 17 Nov 2022 14:15:20 +0000 (15:15 +0100)
commitb12d0bec385b7a58b9e83751e6cd9f04ec3b23a4
treece1b38c404e0be65643b92d53ba4af6759914ae0
parentc93fd5266cff2afa908659c817c6aff4d5ed6283
PCI/MSI: Move pci_disable_msi() to api.c

msi.c is a maze of randomly sorted functions which makes the code
unreadable. As a first step split the driver visible API and the internal
implementation which also allows proper API documentation via one file.

Create drivers/pci/msi/api.c to group all exported device-driver PCI/MSI
APIs in one C file.

Begin by moving pci_disable_msi() there and add kernel-doc for the function
as appropriate.

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/20221111122014.696798036@linutronix.de
drivers/pci/msi/Makefile
drivers/pci/msi/api.c [new file with mode: 0644]
drivers/pci/msi/msi.c
drivers/pci/msi/msi.h