mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
usb: create USBPortOps, move attach there.
Create USBPortOps struct, move the attach function to that struct. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
ed5a83ddd8
commit
0d86d2bebb
7 changed files with 30 additions and 10 deletions
2
hw/usb.c
2
hw/usb.c
|
@ -28,7 +28,7 @@
|
|||
|
||||
void usb_attach(USBPort *port, USBDevice *dev)
|
||||
{
|
||||
port->attach(port, dev);
|
||||
port->ops->attach(port, dev);
|
||||
}
|
||||
|
||||
/**********************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue