mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
qdev: Replace device names containing whitespace
Device names with whitespace require quoting in the shell and in the monitor. Some of the offenders are also overly long. Some have a more convenient alias, some don't. The place for verbose device names is DeviceInfo member desc. The name should be short & sweet. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
063846984c
commit
556cd09885
19 changed files with 56 additions and 63 deletions
|
@ -881,8 +881,7 @@ void usb_hid_datain_cb(USBDevice *dev, void *opaque, void (*datain)(void *))
|
|||
static struct USBDeviceInfo hid_info[] = {
|
||||
{
|
||||
.product_desc = "QEMU USB Tablet",
|
||||
.qdev.name = "QEMU USB Tablet",
|
||||
.qdev.alias = "usb-tablet",
|
||||
.qdev.name = "usb-tablet",
|
||||
.usbdevice_name = "tablet",
|
||||
.qdev.size = sizeof(USBHIDState),
|
||||
.init = usb_tablet_initfn,
|
||||
|
@ -893,8 +892,7 @@ static struct USBDeviceInfo hid_info[] = {
|
|||
.handle_destroy = usb_hid_handle_destroy,
|
||||
},{
|
||||
.product_desc = "QEMU USB Mouse",
|
||||
.qdev.name = "QEMU USB Mouse",
|
||||
.qdev.alias = "usb-mouse",
|
||||
.qdev.name = "usb-mouse",
|
||||
.usbdevice_name = "mouse",
|
||||
.qdev.size = sizeof(USBHIDState),
|
||||
.init = usb_mouse_initfn,
|
||||
|
@ -905,8 +903,7 @@ static struct USBDeviceInfo hid_info[] = {
|
|||
.handle_destroy = usb_hid_handle_destroy,
|
||||
},{
|
||||
.product_desc = "QEMU USB Keyboard",
|
||||
.qdev.name = "QEMU USB Keyboard",
|
||||
.qdev.alias = "usb-kbd",
|
||||
.qdev.name = "usb-kbd",
|
||||
.usbdevice_name = "keyboard",
|
||||
.qdev.size = sizeof(USBHIDState),
|
||||
.init = usb_keyboard_initfn,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue