UPSTREAM: usb: dwc3: gadget: simplify dwc3_gadget_ep_queue()
authorFelipe Balbi <balbi@ti.com>
Mon, 16 Nov 2015 21:31:21 +0000 (15:31 -0600)
committerWu Liang feng <wulf@rock-chips.com>
Sun, 6 Mar 2016 12:57:18 +0000 (20:57 +0800)
commit286371ccd4b728ba950952b88bbe4cd1d5ebfc26
tree0a792ce2590a8d1c707e684456d5607abafca5b6
parente91f04cc31eb9735ab61757813d76a618b2b8cd7
UPSTREAM: usb: dwc3: gadget: simplify dwc3_gadget_ep_queue()

By moving our sanity checks our internal function
__dwc3_gadget_ep_queue() we can simplify the
externally visible API while also making sure that
callers of __dwc3_gadget_ep_queue() also make use of
the same checks.

Signed-off-by: Felipe Balbi <balbi@ti.com>
(cherry picked from commit bb423984c28e9f94a8f466b791baa762cef0543d)

Change-Id: I6fc7b972e288b4d3ffcb629daed784c87d243e32
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
drivers/usb/dwc3/gadget.c