usb: gadget: Update fusb300_udc to use usb_endpoint_descriptor inside the struct...
authorIdo Shayevitz <idos@codeaurora.org>
Mon, 12 Mar 2012 18:25:30 +0000 (20:25 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 4 May 2012 12:52:55 +0000 (15:52 +0300)
Remove redundant pointer to struct usb_endpoint_descriptor.

Signed-off-by: Ido Shayevitz <idos@codeaurora.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/fusb300_udc.c
drivers/usb/gadget/fusb300_udc.h

index 5831cb4a0b35733dd6cf7202722eee1764c0aa82..cdd94540e1cdf7d1c9ead21f2a6a8b29c6f46f16 100644 (file)
@@ -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);
index 92745bd03064f52dfa5c60dabd440aefb283d781..542cd83cc8069b037a4226a05e57f4e612b55408 100644 (file)
@@ -650,7 +650,6 @@ struct fusb300_ep {
 
        unsigned char           epnum;
        unsigned char           type;
-       const struct usb_endpoint_descriptor    *desc;
 };
 
 struct fusb300 {