projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
869c597
)
usb: gadget: epautoconf: switch over to usb_endpoint_type()
author
Felipe Balbi
<balbi@ti.com>
Fri, 8 Nov 2013 18:39:29 +0000
(12:39 -0600)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 26 Nov 2013 16:58:16 +0000
(10:58 -0600)
we have a helper to fetch endpoint type out of
a descriptor, let's use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/epautoconf.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/epautoconf.c
b/drivers/usb/gadget/epautoconf.c
index a777f7bd11b46971c30d7aaef32080e5c7139e6f..feaaa7b72ee39fb7781d599e5b2cf7ea0b590939 100644
(file)
--- a/
drivers/usb/gadget/epautoconf.c
+++ b/
drivers/usb/gadget/epautoconf.c
@@
-58,7
+58,7
@@
ep_matches (
return 0;
/* only support ep0 for portable CONTROL traffic */
- type =
desc->bmAttributes & USB_ENDPOINT_XFERTYPE_MASK
;
+ type =
usb_endpoint_type(desc)
;
if (USB_ENDPOINT_XFER_CONTROL == type)
return 0;