Skip to content

Commit cca0dfe

Browse files
debox1Lorenzo Pieralisi
authored andcommitted
PCI: vmd: Use PCI_VDEVICE in device list
Use PCI_VDEVICE to simplify the device table. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: David E. Box <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Jon Derrick <[email protected]> Reviewed-by: Nirmal Patel <[email protected]> Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]>
1 parent de82f60 commit cca0dfe

File tree

1 file changed

+8
-8
lines changed
  • drivers/pci/controller

1 file changed

+8
-8
lines changed

drivers/pci/controller/vmd.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,33 +1017,33 @@ static int vmd_resume(struct device *dev)
10171017
static SIMPLE_DEV_PM_OPS(vmd_dev_pm_ops, vmd_suspend, vmd_resume);
10181018

10191019
static const struct pci_device_id vmd_ids[] = {
1020-
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VMD_201D),
1020+
{PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_VMD_201D),
10211021
.driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP,},
1022-
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VMD_28C0),
1022+
{PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_VMD_28C0),
10231023
.driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW |
10241024
VMD_FEAT_HAS_BUS_RESTRICTIONS |
10251025
VMD_FEAT_CAN_BYPASS_MSI_REMAP,},
1026-
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x467f),
1026+
{PCI_VDEVICE(INTEL, 0x467f),
10271027
.driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP |
10281028
VMD_FEAT_HAS_BUS_RESTRICTIONS |
10291029
VMD_FEAT_OFFSET_FIRST_VECTOR,},
1030-
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x4c3d),
1030+
{PCI_VDEVICE(INTEL, 0x4c3d),
10311031
.driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP |
10321032
VMD_FEAT_HAS_BUS_RESTRICTIONS |
10331033
VMD_FEAT_OFFSET_FIRST_VECTOR,},
1034-
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0xa77f),
1034+
{PCI_VDEVICE(INTEL, 0xa77f),
10351035
.driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP |
10361036
VMD_FEAT_HAS_BUS_RESTRICTIONS |
10371037
VMD_FEAT_OFFSET_FIRST_VECTOR,},
1038-
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x7d0b),
1038+
{PCI_VDEVICE(INTEL, 0x7d0b),
10391039
.driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP |
10401040
VMD_FEAT_HAS_BUS_RESTRICTIONS |
10411041
VMD_FEAT_OFFSET_FIRST_VECTOR,},
1042-
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0xad0b),
1042+
{PCI_VDEVICE(INTEL, 0xad0b),
10431043
.driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP |
10441044
VMD_FEAT_HAS_BUS_RESTRICTIONS |
10451045
VMD_FEAT_OFFSET_FIRST_VECTOR,},
1046-
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VMD_9A0B),
1046+
{PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_VMD_9A0B),
10471047
.driver_data = VMD_FEAT_HAS_MEMBAR_SHADOW_VSCAP |
10481048
VMD_FEAT_HAS_BUS_RESTRICTIONS |
10491049
VMD_FEAT_OFFSET_FIRST_VECTOR,},

0 commit comments

Comments
 (0)