summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/composite.c
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2014-09-09 08:56:49 +0800
committerFelipe Balbi <balbi@ti.com>2014-09-09 09:58:54 -0500
commitd8a816fc6f6a1d262798dc43d6791c3e93d2d2b5 (patch)
treef0f6d0a28f7c184a926c505742232cadd1bb4449 /drivers/usb/gadget/composite.c
parentef979a26e3d521d51dbd9950e46a69e303073171 (diff)
downloadop-kernel-dev-d8a816fc6f6a1d262798dc43d6791c3e93d2d2b5.zip
op-kernel-dev-d8a816fc6f6a1d262798dc43d6791c3e93d2d2b5.tar.gz
usb: gadget: composite: add reset API at usb_gadget_driver
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>
Diffstat (limited to 'drivers/usb/gadget/composite.c')
-rw-r--r--drivers/usb/gadget/composite.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
index 4514e73..3f3d6f2 100644
--- a/drivers/usb/gadget/composite.c
+++ b/drivers/usb/gadget/composite.c
@@ -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,
OpenPOWER on IntegriCloud