mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
hw/usb: Inline usb_new()
Inline the 3 uses of usb_new(). Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20240216110313.17039-11-philmd@linaro.org>
This commit is contained in:
parent
8bf6275f7e
commit
8d2701072e
3 changed files with 4 additions and 8 deletions
|
@ -624,7 +624,7 @@ static USBDevice *usb_braille_init(void)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
dev = usb_new("usb-braille");
|
||||
dev = USB_DEVICE(qdev_new("usb-braille"));
|
||||
qdev_prop_set_chr(&dev->qdev, "chardev", cdrv);
|
||||
return dev;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue