aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/r8a66597-udc.c
diff options
context:
space:
mode:
authorIdo Shayevitz <idos@codeaurora.org>2012-03-12 14:25:37 -0400
committerFelipe Balbi <balbi@ti.com>2012-05-04 08:52:58 -0400
commit9e658f2600dc37158b17c3d63daeaf2e55915d35 (patch)
treeac0655e8e2ee610671f80c7267d5d5c2fc6b09d6 /drivers/usb/gadget/r8a66597-udc.c
parentc18800d8f9708c9e4a0b593d34f63af169b4b59a (diff)
usb: gadget: Update r8a66597-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>
Diffstat (limited to 'drivers/usb/gadget/r8a66597-udc.c')
-rw-r--r--drivers/usb/gadget/r8a66597-udc.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/usb/gadget/r8a66597-udc.c b/drivers/usb/gadget/r8a66597-udc.c
index c4401e7dd3a6..b54152b962ff 100644
--- a/drivers/usb/gadget/r8a66597-udc.c
+++ b/drivers/usb/gadget/r8a66597-udc.c
@@ -459,7 +459,7 @@ static int alloc_pipe_config(struct r8a66597_ep *ep,
459 unsigned char *counter; 459 unsigned char *counter;
460 int ret; 460 int ret;
461 461
462 ep->desc = desc; 462 ep->ep.desc = desc;
463 463
464 if (ep->pipenum) /* already allocated pipe */ 464 if (ep->pipenum) /* already allocated pipe */
465 return 0; 465 return 0;
@@ -648,7 +648,7 @@ static int sudmac_alloc_channel(struct r8a66597 *r8a66597,
648 /* set SUDMAC parameters */ 648 /* set SUDMAC parameters */
649 dma = &r8a66597->dma; 649 dma = &r8a66597->dma;
650 dma->used = 1; 650 dma->used = 1;
651 if (ep->desc->bEndpointAddress & USB_DIR_IN) { 651 if (ep->ep.desc->bEndpointAddress & USB_DIR_IN) {
652 dma->dir = 1; 652 dma->dir = 1;
653 } else { 653 } else {
654 dma->dir = 0; 654 dma->dir = 0;
@@ -770,7 +770,7 @@ static void start_packet_read(struct r8a66597_ep *ep,
770 770
771static void start_packet(struct r8a66597_ep *ep, struct r8a66597_request *req) 771static void start_packet(struct r8a66597_ep *ep, struct r8a66597_request *req)
772{ 772{
773 if (ep->desc->bEndpointAddress & USB_DIR_IN) 773 if (ep->ep.desc->bEndpointAddress & USB_DIR_IN)
774 start_packet_write(ep, req); 774 start_packet_write(ep, req);
775 else 775 else
776 start_packet_read(ep, req); 776 start_packet_read(ep, req);
@@ -930,7 +930,7 @@ __acquires(r8a66597->lock)
930 930
931 if (restart) { 931 if (restart) {
932 req = get_request_from_ep(ep); 932 req = get_request_from_ep(ep);
933 if (ep->desc) 933 if (ep->ep.desc)
934 start_packet(ep, req); 934 start_packet(ep, req);
935 } 935 }
936} 936}
@@ -1116,7 +1116,7 @@ static void irq_pipe_ready(struct r8a66597 *r8a66597, u16 status, u16 enb)
1116 r8a66597_write(r8a66597, ~check, BRDYSTS); 1116 r8a66597_write(r8a66597, ~check, BRDYSTS);
1117 ep = r8a66597->pipenum2ep[pipenum]; 1117 ep = r8a66597->pipenum2ep[pipenum];
1118 req = get_request_from_ep(ep); 1118 req = get_request_from_ep(ep);
1119 if (ep->desc->bEndpointAddress & USB_DIR_IN) 1119 if (ep->ep.desc->bEndpointAddress & USB_DIR_IN)
1120 irq_packet_write(ep, req); 1120 irq_packet_write(ep, req);
1121 else 1121 else
1122 irq_packet_read(ep, req); 1122 irq_packet_read(ep, req);
@@ -1627,7 +1627,7 @@ static int r8a66597_queue(struct usb_ep *_ep, struct usb_request *_req,
1627 req->req.actual = 0; 1627 req->req.actual = 0;
1628 req->req.status = -EINPROGRESS; 1628 req->req.status = -EINPROGRESS;
1629 1629
1630 if (ep->desc == NULL) /* control */ 1630 if (ep->ep.desc == NULL) /* control */
1631 start_ep0(ep, req); 1631 start_ep0(ep, req);
1632 else { 1632 else {
1633 if (request && !ep->busy) 1633 if (request && !ep->busy)
@@ -1692,7 +1692,7 @@ static int r8a66597_set_wedge(struct usb_ep *_ep)
1692 1692
1693 ep = container_of(_ep, struct r8a66597_ep, ep); 1693 ep = container_of(_ep, struct r8a66597_ep, ep);
1694 1694
1695 if (!ep || !ep->desc) 1695 if (!ep || !ep->ep.desc)
1696 return -EINVAL; 1696 return -EINVAL;
1697 1697
1698 spin_lock_irqsave(&ep->r8a66597->lock, flags); 1698 spin_lock_irqsave(&ep->r8a66597->lock, flags);