mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
qdev: Rename USBDevice member devname to product_desc
It's not a device name, it's the USB product description string. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
ba32edab7f
commit
0fe6d12e0b
6 changed files with 13 additions and 12 deletions
|
|
@ -370,10 +370,10 @@ USBDevice *usb_host_device_open(const char *devname)
|
|||
dev->dev.speed = USB_SPEED_FULL - 1;
|
||||
|
||||
if (strncmp(dev_info.udi_product, "product", 7) != 0)
|
||||
pstrcpy(dev->dev.devname, sizeof(dev->dev.devname),
|
||||
pstrcpy(dev->dev.product_desc, sizeof(dev->dev.product_desc),
|
||||
dev_info.udi_product);
|
||||
else
|
||||
snprintf(dev->dev.devname, sizeof(dev->dev.devname),
|
||||
snprintf(dev->dev.product_desc, sizeof(dev->dev.product_desc),
|
||||
"host:%s", devname);
|
||||
|
||||
pstrcpy(dev->devpath, sizeof(dev->devpath), "/dev/");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue