From: Felipe Balbi Date: Fri, 8 Nov 2013 18:39:29 +0000 (-0600) Subject: usb: gadget: epautoconf: switch over to usb_endpoint_type() X-Git-Tag: firefly_0821_release~176^2~4624^2~90^2~98 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c3505f04582f3fee1452613c7d36a1811e524ab4;p=firefly-linux-kernel-4.4.55.git 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 --- 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;