usb: gadget: configfs: add reset API at usb_gadget_driver
authorPeter Chen <peter.chen@freescale.com>
Tue, 9 Sep 2014 00:56:50 +0000 (08:56 +0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 9 Sep 2014 14:59:50 +0000 (09:59 -0500)
Add reset API at usb_gadget_driver, it calls disconnect handler currently,
but may do different things in future.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/configfs.c

index 811c2c7cc2694303ca40bcad14054d8599a1be93..34034333f7f61ee50ea262c1d4440374c42bfacd 100644 (file)
@@ -1450,6 +1450,7 @@ static const struct usb_gadget_driver configfs_driver_template = {
        .unbind         = configfs_composite_unbind,
 
        .setup          = composite_setup,
+       .reset          = composite_disconnect,
        .disconnect     = composite_disconnect,
 
        .max_speed      = USB_SPEED_SUPER,