summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-11-08 22:39:29 +0400
committerFelipe Balbi <balbi@ti.com>2013-11-26 20:58:16 +0400
commitc3505f04582f3fee1452613c7d36a1811e524ab4 (patch)
tree7e83ec39d22a697240db1db7f0888bb5c70c1b0e /drivers/usb
parent869c597829817af4b9f85c5e4181c622918dc781 (diff)
downloadlinux-c3505f04582f3fee1452613c7d36a1811e524ab4.tar.xz
usb: gadget: epautoconf: switch over to usb_endpoint_type()
we have a helper to fetch endpoint type out of a descriptor, let's use it. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/epautoconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadget/epautoconf.c
index a777f7bd11b4..feaaa7b72ee3 100644
--- 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;