usb: gadget: Introduce usb_gadget_giveback_request()
authorMichal Sojka <sojka@merica.cz>
Wed, 24 Sep 2014 20:43:18 +0000 (22:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Sep 2014 14:58:17 +0000 (16:58 +0200)
commit3fc2aa5522ab958374d93ef5d2e12df7ee233c91
tree65ffb2f11379a88d4b7aee17e47496c0677b1e61
parent1b59fc7e3cda3f626204cadda8bb9b7d15f4f55b
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>
drivers/usb/gadget/udc/udc-core.c
include/linux/usb/gadget.h