]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: dwc3: remove dwc3_gadget_init_hw_endpoints
authorBryan O'Donoghue <pure.logic@nexus-software.ie>
Tue, 31 Jan 2017 20:58:11 +0000 (20:58 +0000)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 11 Apr 2017 07:58:18 +0000 (10:58 +0300)
commitf3bcfc7e68f0f13903465dae8196dade17ebb364
treeba084dd12b49f770bed997ac2bce870390685465
parent47d3946ea220f2db43b3abc46c9e64287d625ac3
usb: dwc3: remove dwc3_gadget_init_hw_endpoints

A previous patch in the series reduces the number of  callsites of
dwc3_gadget_init_hw_endpoints from two to one. This patch removes the
redundant step of wrappering one function in the other, which can be done
by adding a parameter to dwc3_gadget_init_endpoints and moving the
linked-list initialization of dwc->gadet.ep_list.

Signed-off-by: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/gadget.c