usb: gadget: gadgetfs: add reset API at usb_gadget_driver
authorPeter Chen <peter.chen@freescale.com>
Tue, 9 Sep 2014 00:56:51 +0000 (08:56 +0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 9 Sep 2014 15:00:06 +0000 (10:00 -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/legacy/inode.c

index e96077b8bf7922b89b5feda9a9c34b3de843ab55..edefec2cc584444c53a6c4840e8f5143d1bdebe5 100644 (file)
@@ -1775,6 +1775,7 @@ static struct usb_gadget_driver gadgetfs_driver = {
        .bind           = gadgetfs_bind,
        .unbind         = gadgetfs_unbind,
        .setup          = gadgetfs_setup,
+       .reset          = gadgetfs_disconnect,
        .disconnect     = gadgetfs_disconnect,
        .suspend        = gadgetfs_suspend,