mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
qdev: Separate USB product description from qdev name
Using the qdev name for the product description makes for inconvenient qdev names. Put the product description in new USBDeviceInfo member product_desc. Make usb_qdev_init() use it. No user or guest visible change, since the value is still the same. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
0fe6d12e0b
commit
063846984c
11 changed files with 15 additions and 1 deletions
|
@ -544,6 +544,7 @@ static int usb_hub_initfn(USBDevice *dev)
|
|||
}
|
||||
|
||||
static struct USBDeviceInfo hub_info = {
|
||||
.product_desc = "QEMU USB Hub",
|
||||
.qdev.name = "QEMU USB Hub",
|
||||
.qdev.size = sizeof(USBHubState),
|
||||
.init = usb_hub_initfn,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue