diff options
| author | Michal Sojka <sojka@merica.cz> | 2014-09-24 16:43:18 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-25 10:58:17 -0400 |
| commit | 3fc2aa5522ab958374d93ef5d2e12df7ee233c91 (patch) | |
| tree | 65ffb2f11379a88d4b7aee17e47496c0677b1e61 /include/linux | |
| parent | 1b59fc7e3cda3f626204cadda8bb9b7d15f4f55b (diff) | |
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')
| -rw-r--r-- | include/linux/usb/gadget.h | 8 |
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, | |||
| 1023 | 1023 | ||
| 1024 | /*-------------------------------------------------------------------------*/ | 1024 | /*-------------------------------------------------------------------------*/ |
| 1025 | 1025 | ||
| 1026 | /* utility to give requests back to the gadget layer */ | ||
| 1027 | |||
| 1028 | extern void usb_gadget_giveback_request(struct usb_ep *ep, | ||
| 1029 | struct usb_request *req); | ||
| 1030 | |||
| 1031 | |||
| 1032 | /*-------------------------------------------------------------------------*/ | ||
| 1033 | |||
| 1026 | /* utility wrapping a simple endpoint selection policy */ | 1034 | /* utility wrapping a simple endpoint selection policy */ |
| 1027 | 1035 | ||
| 1028 | extern struct usb_ep *usb_ep_autoconfig(struct usb_gadget *, | 1036 | extern struct usb_ep *usb_ep_autoconfig(struct usb_gadget *, |
