usb: dwc3: gadget: simplify dwc3_gadget_ep_queue()
authorFelipe Balbi <balbi@ti.com>
Mon, 16 Nov 2015 21:31:21 +0000 (15:31 -0600)
committerFelipe Balbi <balbi@ti.com>
Tue, 15 Dec 2015 15:12:41 +0000 (09:12 -0600)
commitbb423984c28e9f94a8f466b791baa762cef0543d
tree031407ef4cfd22b9d0d0b805436ece877a405aca
parent9f9499ae8e6415cefc4fe0a96ad0e27864353c89
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>
drivers/usb/dwc3/gadget.c