Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/vmwgfx: Stop hardcoding the PCI ID

Instead of hardcoding the VMware's PCI ID the code should be using the
public define for it. There's no functional change, it just makes
it obvious what we're dealing with.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211206172620.3139754-4-zack@kde.org

+2 -2
+2 -2
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
··· 254 254 }; 255 255 256 256 static const struct pci_device_id vmw_pci_id_list[] = { 257 - { PCI_DEVICE(0x15ad, VMWGFX_PCI_ID_SVGA2) }, 258 - { PCI_DEVICE(0x15ad, VMWGFX_PCI_ID_SVGA3) }, 257 + { PCI_DEVICE(PCI_VENDOR_ID_VMWARE, VMWGFX_PCI_ID_SVGA2) }, 258 + { PCI_DEVICE(PCI_VENDOR_ID_VMWARE, VMWGFX_PCI_ID_SVGA3) }, 259 259 { } 260 260 }; 261 261 MODULE_DEVICE_TABLE(pci, vmw_pci_id_list);