PCI: Introduce pci_resource_n()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 30 Mar 2023 16:24:29 +0000 (19:24 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 4 Apr 2023 15:43:20 +0000 (10:43 -0500)
commit144d204df78e40e6250201e71ef7d0e42d2a13fc
treebdc2270eb7885df618cde8784121e1f85b299087
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6
PCI: Introduce pci_resource_n()

Introduce pci_resource_n() and replace open-coded implementations of it
in pci.h.

Link: https://lore.kernel.org/r/20230330162434.35055-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
include/linux/pci.h