]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: endpoint: Replace magic number '6' by PCI_STD_NUM_BARS
authorRick Wertenbroek <rick.wertenbroek@gmail.com>
Thu, 12 Dec 2024 16:25:47 +0000 (17:25 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 12 Dec 2024 18:59:11 +0000 (12:59 -0600)
commit76850b54943ffd5037c97cc27794449ce05c31e9
tree89856464674fdecb1ea37bb57806624038e737ad
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
PCI: endpoint: Replace magic number '6' by PCI_STD_NUM_BARS

Replace the constant "6" by PCI_STD_NUM_BARS, as defined in
include/uapi/linux/pci_regs.h:

  #define PCI_STD_NUM_BARS       6       /* Number of standard BARs */

Link: https://lore.kernel.org/r/20241212162547.225880-1-rick.wertenbroek@gmail.com
Signed-off-by: Rick Wertenbroek <rick.wertenbroek@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
include/linux/pci-epf.h