]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Cleanup dev->resource + resno to use pci_resource_n()
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 7 Feb 2025 16:23:01 +0000 (18:23 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 14 Feb 2025 20:39:31 +0000 (14:39 -0600)
commitaddb30c5bd2755770e617e68bdcc0bf2a21770fa
tree886a6fd3e893df987b48bba52f09cf2d376a97c3
parent2014c95afecee3e76ca4a56956a936e23283f05b
PCI: Cleanup dev->resource + resno to use pci_resource_n()

Replace pointer arithmetic in finding the correct resource entry with the
pci_resource_n() helper.

Link: https://lore.kernel.org/r/20250207162301.2842-1-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/iov.c
drivers/pci/pci.c
drivers/pci/quirks.c
drivers/pci/setup-res.c