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

Commit fab1137f authored by Ido Shayevitz's avatar Ido Shayevitz Committed by Felipe Balbi
Browse files

usb: gadget: Update fusb300_udc to use usb_endpoint_descriptor inside the struct usb_ep



Remove redundant pointer to struct usb_endpoint_descriptor.

Signed-off-by: default avatarIdo Shayevitz <idos@codeaurora.org>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 79149b8b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -203,7 +203,7 @@ static int config_ep(struct fusb300_ep *ep,
	struct fusb300 *fusb300 = ep->fusb300;
	struct fusb300_ep_info info;

	ep->desc = desc;
	ep->ep.desc = desc;

	info.interval = 0;
	info.addrofs = 0;
@@ -443,7 +443,7 @@ static int fusb300_queue(struct usb_ep *_ep, struct usb_request *_req,
	req->req.actual = 0;
	req->req.status = -EINPROGRESS;

	if (ep->desc == NULL) /* ep0 */
	if (ep->ep.desc == NULL) /* ep0 */
		ep0_queue(ep, req);
	else if (request && !ep->stall)
		enable_fifo_int(ep);
+0 −1
Original line number Diff line number Diff line
@@ -650,7 +650,6 @@ struct fusb300_ep {

	unsigned char		epnum;
	unsigned char		type;
	const struct usb_endpoint_descriptor	*desc;
};

struct fusb300 {