On Fri, 4 Oct 2013, Hans de Goede wrote:
> This is a preparation patch for adding support for bulk streams to usbfs.
> + for (i = 0; i < num_eps; i++)
> + eps[i]->has_streams = 1;
> --- a/include/linux/usb.h
> +++ b/include/linux/usb.h
> @@ -71,6 +71,7 @@ struct usb_host_endpoint {
> unsigned char *extra; /* Extra descriptors */
> int extralen;
> int enabled;
> + int has_streams;
Instead of storing a 0/1 value, wouldn't it be more useful to store the
number of streams the endpoint has?
Alan Stern
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html