projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02f751b
)
usb: gadget: gadgetfs: add reset API at usb_gadget_driver
author
Peter Chen
<peter.chen@freescale.com>
Tue, 9 Sep 2014 00:56:51 +0000
(08:56 +0800)
committer
Felipe 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/legacy/inode.c
b/drivers/usb/gadget/legacy/inode.c
index e96077b8bf7922b89b5feda9a9c34b3de843ab55..edefec2cc584444c53a6c4840e8f5143d1bdebe5 100644
(file)
--- a/
drivers/usb/gadget/legacy/inode.c
+++ b/
drivers/usb/gadget/legacy/inode.c
@@
-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,