[Qemu-devel] [PATCH v3 04/19] libusb: convert init to realize

2014-09-18 Thread arei.gonglei
From: Gonglei In this way, all the implementations now use error_setg instead of error_report for reporting error. Signed-off-by: Gonglei Reviewed-by: Paolo Bonzini --- hw/usb/host-libusb.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/hw/usb/host-libus

[Qemu-devel] [PATCH v3 17/19] usb-redir: convert init to realize

2014-09-18 Thread arei.gonglei
From: Gonglei In this way, all the implementations now use error_setg instead of qerror_report for reporting error. Signed-off-by: Gonglei Reviewed-by: Paolo Bonzini --- hw/usb/redirect.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/hw/usb/redirect.c b/h

[Qemu-devel] [PATCH v3 13/19] usb-ccid: convert init to realize

2014-09-18 Thread arei.gonglei
From: Gonglei Signed-off-by: Gonglei Reviewed-by: Paolo Bonzini --- hw/usb/dev-smartcard-reader.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c index 470e69f..d37ed02 100644 --- a/hw/usb/dev-smartcard-read

[Qemu-devel] [PATCH v3 19/19] usb-bus: remove "init" from USBDeviceClass struct

2014-09-18 Thread arei.gonglei
From: Gonglei All usb-bus devices are realized by realize(), remove init callback function from USBDeviceClass struct. Signed-off-by: Gonglei Reviewed-by: Paolo Bonzini --- hw/usb/bus.c | 2 -- include/hw/usb.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/hw/usb/bus.c b/hw/usb/bu

[Qemu-devel] [PATCH v3 14/19] dev-hid: convert init to realize

2014-09-18 Thread arei.gonglei
From: Gonglei In this way, all the implementations now use error_setg instead of error_report for reporting error. Signed-off-by: Gonglei --- hw/usb/dev-hid.c | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/hw/usb/dev-hid.c b/hw/usb/dev-hid.c i

<    1   2   3   4