usb: gadget: composite: add reset API at usb_gadget_driver
authorPeter Chen <peter.chen@freescale.com>
Tue, 9 Sep 2014 00:56:49 +0000 (08:56 +0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 9 Sep 2014 14:58:54 +0000 (09:58 -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/composite.c

index 4514e73d9e7090c33bcbb82da4093598f408a185..3f3d6f217abeca08f589a793ea430feb5bbe1b92 100644 (file)
@@ -2073,6 +2073,7 @@ static const struct usb_gadget_driver composite_driver_template = {
        .unbind         = composite_unbind,
 
        .setup          = composite_setup,
+       .reset          = composite_disconnect,
        .disconnect     = composite_disconnect,
 
        .suspend        = composite_suspend,