Re: [RFCv2 1/4] usb: gadget: epautoconf: switch over to usb_endpoint_type()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/08/2013 07:39 PM, Felipe Balbi wrote:
> diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadget/epautoconf.c
> index a777f7b..feaaa7b 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;
>  

This does not depend on anything and could go in as is.

Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux