diff options
| author | Ilpo Järvinen <[email protected]> | 2023-10-03 15:53:00 +0300 | 
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2023-10-03 11:55:59 -0500 | 
| commit | 83c088148c8e5c439eec6c7651692f797547e1a8 (patch) | |
| tree | 83d00b9ca938dfff41418d2e9df06b5cc6949284 /drivers/pci/hotplug/ibmphp.h | |
| parent | bdca03a271f2de2c24ea56756fd9bbcff35173fb (diff) | |
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/[email protected]
Signed-off-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Wolfram Sang <[email protected]> # for Renesas R-Car
Diffstat (limited to 'drivers/pci/hotplug/ibmphp.h')
| -rw-r--r-- | drivers/pci/hotplug/ibmphp.h | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/ibmphp.h b/drivers/pci/hotplug/ibmphp.h index 41eafe511210..c248a09be7b5 100644 --- a/drivers/pci/hotplug/ibmphp.h +++ b/drivers/pci/hotplug/ibmphp.h @@ -17,6 +17,7 @@   */  #include <linux/pci_hotplug.h> +#include <linux/pci_regs.h>  extern int ibmphp_debug; @@ -286,8 +287,8 @@ int ibmphp_register_pci(void);  /* pci specific defines */  #define PCI_VENDOR_ID_NOTVALID		0xFFFF -#define PCI_HEADER_TYPE_MULTIDEVICE	0x80 -#define PCI_HEADER_TYPE_MULTIBRIDGE	0x81 +#define PCI_HEADER_TYPE_MULTIDEVICE	(PCI_HEADER_TYPE_MFD|PCI_HEADER_TYPE_NORMAL) +#define PCI_HEADER_TYPE_MULTIBRIDGE	(PCI_HEADER_TYPE_MFD|PCI_HEADER_TYPE_BRIDGE)  #define LATENCY		0x64  #define CACHE		64  |