PCI: Split out next_ari_fn() from next_fn()
authorNiklas Schnelle <schnelle@linux.ibm.com>
Tue, 28 Jun 2022 14:30:57 +0000 (16:30 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 22 Jul 2022 21:05:00 +0000 (16:05 -0500)
commitfbed59ed8781d7eecd7f45cde0188cf24eeb5c38
treed206169ce426ed2b26fe3274bf513ad1c5444559
parentc3df83e01a96ca569d261bcdffa2fb858b1012fa
PCI: Split out next_ari_fn() from next_fn()

In commit b1bd58e448f2 ("PCI: Consolidate "next-function" functions") the
next_fn() function subsumed the traditional and ARI-based next function
determination. This got rid of some needlessly complex function pointer
handling but also reduced the separation between these very different
methods of finding the next function. With the next_fn() cleaned up a bit
we can re-introduce this separation by moving out the ARI handling while
sticking with direct function calls.

Link: https://lore.kernel.org/r/20220628143100.3228092-3-schnelle@linux.ibm.com
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
drivers/pci/probe.c