summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/function/g_zero.h
diff options
context:
space:
mode:
authorFelipe F. Tonello <eu@felipetonello.com>2015-11-10 17:52:05 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-04-08 11:51:56 +0200
commit0446437c8bb63e03e05fa0024abc1bb27eaf037c (patch)
tree03d78c0e0b782bd5df16d4b1e3ce5578701cb7a5 /drivers/usb/gadget/function/g_zero.h
parent52a9a9b18d395b65406e2a05ea4bb6ffd2620c12 (diff)
usb: gadget: define free_ep_req as universal function
commit 079fe5a6da616891cca1a26e803e1df2a87e9ae5 upstream. This function is shared between gadget functions, so this avoid unnecessary duplicated code and potentially avoid memory leaks. Reviewed-by: Robert Baldyga <r.baldyga@samsung.com> Signed-off-by: Felipe F. Tonello <eu@felipetonello.com> Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/function/g_zero.h')
-rw-r--r--drivers/usb/gadget/function/g_zero.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/g_zero.h b/drivers/usb/gadget/function/g_zero.h
index 15f180904f8a..5ed90b437f18 100644
--- a/drivers/usb/gadget/function/g_zero.h
+++ b/drivers/usb/gadget/function/g_zero.h
@@ -59,7 +59,6 @@ void lb_modexit(void);
int lb_modinit(void);
/* common utilities */
-void free_ep_req(struct usb_ep *ep, struct usb_request *req);
void disable_endpoints(struct usb_composite_dev *cdev,
struct usb_ep *in, struct usb_ep *out,
struct usb_ep *iso_in, struct usb_ep *iso_out);