diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-10-26 15:56:46 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-30 08:39:30 -0500 |
commit | fa7c70c35a24f2c5b115004c51f3b726cc630e6d (patch) | |
tree | eda027a86178991b1eeed90aa88c9fd1156f26b0 /hw/usb-hid.c | |
parent | 0958b4cc8f7889b61770690fa29a1201895cf581 (diff) |
usb-hid: use qdev for -usbdevice
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/usb-hid.c')
-rw-r--r-- | hw/usb-hid.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/usb-hid.c b/hw/usb-hid.c index d1cc45e02c..f4a2a481eb 100644 --- a/hw/usb-hid.c +++ b/hw/usb-hid.c @@ -882,6 +882,7 @@ static struct USBDeviceInfo hid_info[] = { { .qdev.name = "QEMU USB Tablet", .qdev.alias = "usb-tablet", + .usbdevice_name = "tablet", .qdev.size = sizeof(USBHIDState), .init = usb_tablet_initfn, .handle_packet = usb_generic_handle_packet, @@ -892,6 +893,7 @@ static struct USBDeviceInfo hid_info[] = { },{ .qdev.name = "QEMU USB Mouse", .qdev.alias = "usb-mouse", + .usbdevice_name = "mouse", .qdev.size = sizeof(USBHIDState), .init = usb_mouse_initfn, .handle_packet = usb_generic_handle_packet, @@ -902,6 +904,7 @@ static struct USBDeviceInfo hid_info[] = { },{ .qdev.name = "QEMU USB Keyboard", .qdev.alias = "usb-kbd", + .usbdevice_name = "keyboard", .qdev.size = sizeof(USBHIDState), .init = usb_keyboard_initfn, .handle_packet = usb_generic_handle_packet, |