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