Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Ido Shayevitz <idos@codeaurora.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>

authored by

Ido Shayevitz and committed by
Felipe Balbi
fab1137f 79149b8b

+2 -3
+2 -2
drivers/usb/gadget/fusb300_udc.c
··· 203 203 struct fusb300 *fusb300 = ep->fusb300; 204 204 struct fusb300_ep_info info; 205 205 206 - ep->desc = desc; 206 + ep->ep.desc = desc; 207 207 208 208 info.interval = 0; 209 209 info.addrofs = 0; ··· 443 443 req->req.actual = 0; 444 444 req->req.status = -EINPROGRESS; 445 445 446 - if (ep->desc == NULL) /* ep0 */ 446 + if (ep->ep.desc == NULL) /* ep0 */ 447 447 ep0_queue(ep, req); 448 448 else if (request && !ep->stall) 449 449 enable_fifo_int(ep);
-1
drivers/usb/gadget/fusb300_udc.h
··· 650 650 651 651 unsigned char epnum; 652 652 unsigned char type; 653 - const struct usb_endpoint_descriptor *desc; 654 653 }; 655 654 656 655 struct fusb300 {