Skip to content

Commit 8ad0c3f

Browse files
committed
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 <[email protected]> Reviewed-by: Martin Krastev <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent f4708c1 commit 8ad0c3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_drv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ static const struct drm_ioctl_desc vmw_ioctls[] = {
254254
};
255255

256256
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) },
259259
{ }
260260
};
261261
MODULE_DEVICE_TABLE(pci, vmw_pci_id_list);

0 commit comments

Comments
 (0)