OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4708c1
)
drm/vmwgfx: Stop hardcoding the PCI ID
author
Zack Rusin
<zackr@vmware.com>
Mon, 6 Dec 2021 17:26:11 +0000
(12:26 -0500)
committer
Zack Rusin
<zackr@vmware.com>
Thu, 9 Dec 2021 18:16:15 +0000
(13:16 -0500)
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
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
index
9680ab1
..
acdd0c9
100644
(file)
--- a/
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
+++ b/
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
@@
-254,8
+254,8
@@
static const struct drm_ioctl_desc vmw_ioctls[] = {
};
static const struct pci_device_id vmw_pci_id_list[] = {
- { PCI_DEVICE(
0x15ad
, VMWGFX_PCI_ID_SVGA2) },
- { PCI_DEVICE(
0x15ad
, VMWGFX_PCI_ID_SVGA3) },
+ { PCI_DEVICE(
PCI_VENDOR_ID_VMWARE
, VMWGFX_PCI_ID_SVGA2) },
+ { PCI_DEVICE(
PCI_VENDOR_ID_VMWARE
, VMWGFX_PCI_ID_SVGA3) },
{ }
};
MODULE_DEVICE_TABLE(pci, vmw_pci_id_list);