aboutsummaryrefslogtreecommitdiff
path: root/hw/usb-hub.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2009-12-09 17:07:52 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-12 08:17:28 -0600
commit5b6d0419d9a411d83a1078a146ee140482dcc02c (patch)
tree796339f8786c281c1556778d818b9a454ddf334f /hw/usb-hub.c
parent9df9eeeb18d93acf21e43710cf8aa2be8eff7a8a (diff)
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> (cherry picked from commit 063846984ce7eb1c1ddce6dda39b662c64a80dc0)
Diffstat (limited to 'hw/usb-hub.c')
-rw-r--r--hw/usb-hub.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb-hub.c b/hw/usb-hub.c
index e5a0938776..32f2ab8c73 100644
--- a/hw/usb-hub.c
+++ b/hw/usb-hub.c
@@ -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,