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>
This commit is contained in:
Ilpo Järvinen 2025-02-07 18:23:01 +02:00 • committed by Bjorn Helgaas
commit addb30c5bd
4 changed files with 10 additions and 10 deletions