mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
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>
This commit is contained in:
parent
869c597829
commit
c3505f0458
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user