]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
musb_hdrc: Search and replace pDest with dst
authorTony Lindgren <tony@atomide.com>
Mon, 13 Aug 2007 09:53:58 +0000 (02:53 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 13 Aug 2007 09:53:58 +0000 (02:53 -0700)
Search and replace pDest with dst

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/musbdefs.h
drivers/usb/musb/plat_uds.c

index afb003a7405b389e46b47a39cadb8dad4149f46d..b612f1f4afe00767ec7a610871c6d672aebf9cb8 100644 (file)
@@ -502,7 +502,7 @@ extern void musb_stop(struct musb *musb);
 extern void musb_write_fifo(struct musb_hw_ep *ep,
                             u16 wCount, const u8 * src);
 extern void musb_read_fifo(struct musb_hw_ep *ep,
-                              u16 wCount, u8 * pDest);
+                              u16 wCount, u8 * dst);
 
 extern void musb_load_testpacket(struct musb *);
 
index d7378e9d0df11b4b6d4032e85b8e0e4e2cc2c640..2218c62c4ff4485a2f431438d04da5e89458a95c 100644 (file)
@@ -209,38 +209,38 @@ void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 wCount, const u8 *src)
 /*
  * Unload an endpoint's FIFO
  */
-void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 wCount, u8 *pDest)
+void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 wCount, u8 *dst)
 {
        void __iomem *fifo = hw_ep->fifo;
 
        DBG(4, "%cX ep%d fifo %p count %d buf %p\n",
-                       'R', hw_ep->bLocalEnd, fifo, wCount, pDest);
+                       'R', hw_ep->bLocalEnd, fifo, wCount, dst);
 
        /* we can't assume unaligned writes work */
-       if (likely((0x01 & (unsigned long) pDest) == 0)) {
+       if (likely((0x01 & (unsigned long) dst) == 0)) {
                u16     index = 0;
 
                /* best case is 32bit-aligned destination address */
-               if ((0x02 & (unsigned long) pDest) == 0) {
+               if ((0x02 & (unsigned long) dst) == 0) {
                        if (wCount >= 4) {
-                               readsl(fifo, pDest, wCount >> 2);
+                               readsl(fifo, dst, wCount >> 2);
                                index = wCount & ~0x03;
                        }
                        if (wCount & 0x02) {
-                               *(u16*)&pDest[index] = musb_readw(fifo, 0);
+                               *(u16*)&dst[index] = musb_readw(fifo, 0);
                                index += 2;
                        }
                } else {
                        if (wCount >= 2) {
-                               readsw(fifo, pDest, wCount >> 1);
+                               readsw(fifo, dst, wCount >> 1);
                                index = wCount & ~0x01;
                        }
                }
                if (wCount & 0x01)
-                       pDest[index] = musb_readb(fifo, 0);
+                       dst[index] = musb_readb(fifo, 0);
        } else  {
                /* byte aligned */
-               readsb(fifo, pDest, wCount);
+               readsb(fifo, dst, wCount);
        }
 }