]> git.karo-electronics.de Git - linux-beck.git/commitdiff
usb: gadget: dbgp: add reset API at usb_gadget_driver
authorPeter Chen <peter.chen@freescale.com>
Tue, 9 Sep 2014 00:56:52 +0000 (08:56 +0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 9 Sep 2014 15:00:15 +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/dbgp.c

index 225e385a616009747a42b5117769e316c7638fc6..1b075132f8f193f359a97cc66cc795304aa7f819 100644 (file)
@@ -410,6 +410,7 @@ static __refdata struct usb_gadget_driver dbgp_driver = {
        .bind = dbgp_bind,
        .unbind = dbgp_unbind,
        .setup = dbgp_setup,
+       .reset = dbgp_disconnect,
        .disconnect = dbgp_disconnect,
        .driver = {
                .owner = THIS_MODULE,