aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Chen2014-09-09 08:56:50 +0800
committerFelipe Balbi2014-09-09 09:59:50 -0500
commit02f751b43f6766da4382bed322926eb99d56f516 (patch)
treeb88d25960f12653746d57069189a1d20a056669f
parentd8a816fc6f6a1d262798dc43d6791c3e93d2d2b5 (diff)
usb: gadget: configfs: 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>
-rw-r--r--drivers/usb/gadget/configfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c
index 811c2c7cc269..34034333f7f6 100644
--- a/drivers/usb/gadget/configfs.c
+++ b/drivers/usb/gadget/configfs.c
@@ -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,