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:
Philippe Mathieu-Daudé 2023-12-16 18:24:11 +01:00
parent 8bf6275f7e
commit 8d2701072e
3 changed files with 4 additions and 8 deletions

View file

@ -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;
}