summaryrefslogtreecommitdiffstats
path: root/hw/usb-msd.c
diff options
context:
space:
mode:
authorMarkus Armbruster2009-12-09 17:07:52 +0100
committerAnthony Liguori2009-12-12 14:59:38 +0100
commit063846984ce7eb1c1ddce6dda39b662c64a80dc0 (patch)
tree3af77f3d27bf7a7400ba8919a8a03af157ca25ff /hw/usb-msd.c
parentqdev: Rename USBDevice member devname to product_desc (diff)
downloadqemu-063846984ce7eb1c1ddce6dda39b662c64a80dc0.tar.gz
qemu-063846984ce7eb1c1ddce6dda39b662c64a80dc0.tar.xz
qemu-063846984ce7eb1c1ddce6dda39b662c64a80dc0.zip
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>
Diffstat (limited to 'hw/usb-msd.c')
-rw-r--r--hw/usb-msd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb-msd.c b/hw/usb-msd.c
index bb39b625ad..b9f6588a7a 100644
--- a/hw/usb-msd.c
+++ b/hw/usb-msd.c
@@ -600,6 +600,7 @@ static USBDevice *usb_msd_init(const char *filename)
}
static struct USBDeviceInfo msd_info = {
+ .product_desc = "QEMU USB MSD",
.qdev.name = "QEMU USB MSD",
.qdev.alias = "usb-storage",
.qdev.size = sizeof(MSDState),