Skip to content

Commit a99aaf2

Browse files
easwarhliuw
authored andcommitted
Drivers: hv: vmbus: Use PCI_VENDOR_ID_MICROSOFT for better discoverability
pci_ids.h already defines PCI_VENDOR_ID_MICROSOFT, and is included via linux/pci.h. Use the define instead of the magic number. Signed-off-by: Easwar Hariharan <easwar.hariharan@microsoft.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Link: https://lore.kernel.org/r/1663625084-2518-2-git-send-email-eahariha@linux.microsoft.com Signed-off-by: Wei Liu <wei.liu@kernel.org>
1 parent e1a863c commit a99aaf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hv/vmbus_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2052,7 +2052,7 @@ struct hv_device *vmbus_device_create(const guid_t *type,
20522052
child_device_obj->channel = channel;
20532053
guid_copy(&child_device_obj->dev_type, type);
20542054
guid_copy(&child_device_obj->dev_instance, instance);
2055-
child_device_obj->vendor_id = 0x1414; /* MSFT vendor ID */
2055+
child_device_obj->vendor_id = PCI_VENDOR_ID_MICROSOFT;
20562056

20572057
return child_device_obj;
20582058
}

0 commit comments

Comments
 (0)