]> git.itanic.dy.fi Git - linux-stable/commit
PCI: Use PCI_HEADER_TYPE_* instead of literals
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 3 Oct 2023 12:53:00 +0000 (15:53 +0300)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 3 Oct 2023 16:55:59 +0000 (11:55 -0500)
commit83c088148c8e5c439eec6c7651692f797547e1a8
tree83d00b9ca938dfff41418d2e9df06b5cc6949284
parentbdca03a271f2de2c24ea56756fd9bbcff35173fb
PCI: Use PCI_HEADER_TYPE_* instead of literals

Replace literals under drivers/pci/ with PCI_HEADER_TYPE_MASK,
PCI_HEADER_TYPE_NORMAL, and PCI_HEADER_TYPE_MFD.

Also replace !! boolean conversions with FIELD_GET().

Link: https://lore.kernel.org/r/20231003125300.5541-4-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> # for Renesas R-Car
12 files changed:
drivers/pci/controller/dwc/pci-layerscape.c
drivers/pci/controller/mobiveil/pcie-mobiveil-host.c
drivers/pci/controller/pcie-iproc.c
drivers/pci/controller/pcie-rcar-ep.c
drivers/pci/controller/pcie-rcar-host.c
drivers/pci/controller/vmd.c
drivers/pci/hotplug/cpqphp_ctrl.c
drivers/pci/hotplug/cpqphp_pci.c
drivers/pci/hotplug/ibmphp.h
drivers/pci/hotplug/ibmphp_pci.c
drivers/pci/pci.c
drivers/pci/quirks.c