/* Enables all the endpoints for the interface's current altsetting.  */
void usb_enable_interface(struct usb_device *dev, struct usb_interface *intf, bool reset_eps)
/* Enables all the endpoints for the interface's current altsetting.  */
void usb_enable_interface(struct usb_device *dev, struct usb_interface *intf, bool reset_eps)
{
	struct usb_host_interface *alt = intf->cur_altsetting;
	int i;
	for (i = 0; i < alt->desc.bNumEndpoints; ++i)
		usb_enable_endpoint(dev, &alt->endpoint[i], reset_eps);
}