diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2010-11-26 12:25:32 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-01-11 15:56:00 +0100 |
commit | 132a3f55f05dff4eedde0d23d844ecdedef8ba68 (patch) | |
tree | 8176c0595559cd176b778b3298b047969ae4421b /hw/usb-bus.c | |
parent | 062651c7e750a0c06a693d336c2b9edb893a2c94 (diff) | |
download | qemu-132a3f55f05dff4eedde0d23d844ecdedef8ba68.zip qemu-132a3f55f05dff4eedde0d23d844ecdedef8ba68.tar.gz qemu-132a3f55f05dff4eedde0d23d844ecdedef8ba68.tar.bz2 |
usb descriptors: add settable strings.
This patch allows to set usb descriptor strings per device instance.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb-bus.c')
-rw-r--r-- | hw/usb-bus.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb-bus.c b/hw/usb-bus.c index 8b4583c..af537c2 100644 --- a/hw/usb-bus.c +++ b/hw/usb-bus.c @@ -48,6 +48,7 @@ static int usb_qdev_init(DeviceState *qdev, DeviceInfo *base) pstrcpy(dev->product_desc, sizeof(dev->product_desc), info->product_desc); dev->info = info; dev->auto_attach = 1; + QLIST_INIT(&dev->strings); rc = dev->info->init(dev); if (rc == 0 && dev->auto_attach) usb_device_attach(dev); |