]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI/sysfs: Use PCI resource accessor macros
authorKrzysztof Wilczyński <kwilczynski@kernel.org>
Fri, 8 May 2026 04:35:20 +0000 (04:35 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 8 May 2026 22:43:56 +0000 (17:43 -0500)
commitd29eac59214327e61ff47a980cceeadb7f25d01a
tree3afbfd938b17f9966a8f55ac67485ed3f4235414
parent254f49634ee16a731174d2ae34bc50bd5f45e731
PCI/sysfs: Use PCI resource accessor macros

Replace direct pdev->resource[] accesses with pci_resource_n(), and
pdev->resource[].flags accesses with pci_resource_flags().

No functional changes intended.

Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://patch.msgid.link/20260508043543.217179-2-kwilczynski@kernel.org
drivers/pci/pci-sysfs.c