OSDN Git Service

usb: dwc3: gadget: Remove descriptor arguments to ep_enable
authorJohn Youn <johnyoun@synopsys.com>
Thu, 10 Nov 2016 00:36:28 +0000 (16:36 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 18 Nov 2016 11:54:16 +0000 (13:54 +0200)
commit39ebb05ca83dc636f9c9159b3c6dbc58c932b26a
treeaefb3af094039b26a36e4f54fb11bc0ab5854681
parentee2c40de6415f7866ca35fcb2f1af52c7a22cfd1
usb: dwc3: gadget: Remove descriptor arguments to ep_enable

The __dwc3_gadget_endpoint_enable() function has access to the endpoint
descriptors via the usb_ep. So we don't need to pass them in as
arguments. The descriptors should be set by the caller prior to calling
usb_ep_enable().

Signed-off-by: John Youn <johnyoun@synopsys.com>
[felipe.balbi@linux.intel.com : minor improvements]

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/gadget.c