Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3505f04 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

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: default avatarFelipe Balbi <balbi@ti.com>
parent 869c5978
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;