Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262905
b: refs/heads/master
c: c240d78
h: refs/heads/master
i:
  262903: 3bfe311
v: v3
  • Loading branch information
Sebastian Bauer authored and Felipe Balbi committed Aug 1, 2011
1 parent e41e01d commit 9eebc3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b61ae3427086ea413aa1fb35feea9e8c4d7c2584
refs/heads/master: c240d78a8f9b1d4e1d391203f4a698117fae3474
7 changes: 7 additions & 0 deletions trunk/drivers/usb/gadget/f_hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,13 @@ static int hidg_setup(struct usb_function *f,
case ((USB_DIR_IN | USB_TYPE_STANDARD | USB_RECIP_INTERFACE) << 8
| USB_REQ_GET_DESCRIPTOR):
switch (value >> 8) {
case HID_DT_HID:
VDBG(cdev, "USB_REQ_GET_DESCRIPTOR: HID\n");
length = min_t(unsigned short, length,
hidg_desc.bLength);
memcpy(req->buf, &hidg_desc, length);
goto respond;
break;
case HID_DT_REPORT:
VDBG(cdev, "USB_REQ_GET_DESCRIPTOR: REPORT\n");
length = min_t(unsigned short, length,
Expand Down

0 comments on commit 9eebc3b

Please sign in to comment.