summaryrefslogtreecommitdiff
path: root/hw/usb/dev-unifying.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/usb/dev-unifying.c')
-rw-r--r--hw/usb/dev-unifying.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/hw/usb/dev-unifying.c b/hw/usb/dev-unifying.c
index 36ffdb3f55..c9364f089c 100644
--- a/hw/usb/dev-unifying.c
+++ b/hw/usb/dev-unifying.c
@@ -379,11 +379,7 @@ static void usb_ltunify_handle_control_hid(USBDevice *dev, USBPacket *p,
switch (request) {
case HID_GET_REPORT:
- if (hs->kind == HID_KEYBOARD) {
- p->actual_length = hid_keyboard_poll(hs, data, length);
- } else if (hs->kind == HID_MOUSE) {
- p->actual_length = hid_pointer_poll(hs, data, length);
- }
+ p->actual_length = usb_ltunify_poll_hid(hs, data, length);
break;
case HID_SET_REPORT:
if (hs->kind == HID_KEYBOARD) {