Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72f784ce authored by Hemant Kumar's avatar Hemant Kumar
Browse files

dwc3: gadget: Update ep_num with endpoint structure



dwc3_gadget_resize_tx_fifos() and usb_ep_autoconfig_by_name() APIs
use ep_num. Hence update ep_num with endpoint structure when
initializing USB endpoints.

Change-Id: I59782e4e66aceeab6274485800a0d5175fd2cae4
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 6a0290fc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2566,6 +2566,7 @@ static int dwc3_gadget_init_endpoint(struct dwc3 *dwc, u8 epnum)
	snprintf(dep->name, sizeof(dep->name), "ep%u%s", num,
			direction ? "in" : "out");

	dep->endpoint.ep_num = epnum >> 1;
	dep->endpoint.name = dep->name;

	if (!(dep->number > 1)) {