]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: Clean up pci_scan_child_bus_extend() loop
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 10 Jun 2025 10:58:20 +0000 (13:58 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 11 Aug 2025 20:00:51 +0000 (15:00 -0500)
commitc763fae8c4231e426033f62c21be60db4b6659a9
treed0da1090a40c5d16cea925873898d8ea3e1c1eb5
parentaa84931ba7f989c263a79a3a962524b5830d0e64
PCI: Clean up pci_scan_child_bus_extend() loop

pci_scan_child_bus_extend() open-codes device number iteration in the for
loop. Convert to use PCI_DEVFN() and add PCI_MAX_NR_DEVS (there seems to be
no pre-existing define for this purpose).

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://patch.msgid.link/20250610105820.7126-3-ilpo.jarvinen@linux.intel.com
drivers/pci/pci.h
drivers/pci/probe.c