git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7239f4
)
usb: gadget: printer: add req_match for printer function
author
Andrzej Pietrasiewicz
<andrzej.p@samsung.com>
Tue, 3 Mar 2015 09:52:25 +0000
(10:52 +0100)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 10 Mar 2015 20:33:39 +0000
(15:33 -0500)
Verify that a given usb_ctrlrequest is meant for printer function.
The following parts of the request are tested:
- bmRequestType:Data transfer direction
- bmRequestType:Type
- bmRequestType:Recipient
- bRequest
- wValue for bRequest 1 and 2
- wLength
Additionally, the request is considered meant for this function
iff the decoded interface number matches dev->interface.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/legacy/printer.c
patch
|
blob
|
history
diff --cc
drivers/usb/gadget/legacy/printer.c
Simple merge