summaryrefslogtreecommitdiff
path: root/include/linux/usb/gadget.h
diff options
context:
space:
mode:
authorMichal Sojka <sojka@merica.cz>2014-09-25 00:43:18 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-25 18:58:17 +0400
commit3fc2aa5522ab958374d93ef5d2e12df7ee233c91 (patch)
tree65ffb2f11379a88d4b7aee17e47496c0677b1e61 /include/linux/usb/gadget.h
parent1b59fc7e3cda3f626204cadda8bb9b7d15f4f55b (diff)
downloadlinux-3fc2aa5522ab958374d93ef5d2e12df7ee233c91.tar.xz
usb: gadget: Introduce usb_gadget_giveback_request()
All USB peripheral controller drivers call completion routines directly. This patch adds usb_gadget_giveback_request() which will be used instead of direct invocation in the next patch. The goal here is to have a place where common functionality can be added. Signed-off-by: Michal Sojka <sojka@merica.cz> Acked-by: Felipe Balbi <balbi@ti.com> Tested-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb/gadget.h')
-rw-r--r--include/linux/usb/gadget.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h
index d18811433324..522cafe26790 100644
--- a/include/linux/usb/gadget.h
+++ b/include/linux/usb/gadget.h
@@ -1023,6 +1023,14 @@ extern void usb_gadget_udc_reset(struct usb_gadget *gadget,
/*-------------------------------------------------------------------------*/
+/* utility to give requests back to the gadget layer */
+
+extern void usb_gadget_giveback_request(struct usb_ep *ep,
+ struct usb_request *req);
+
+
+/*-------------------------------------------------------------------------*/
+
/* utility wrapping a simple endpoint selection policy */
extern struct usb_ep *usb_ep_autoconfig(struct usb_gadget *,