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

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

index a56c7102a32f25f9e7fdc08db9455309762f8ecb..afb003a7405b389e46b47a39cadb8dad4149f46d 100644 (file)
@@ -500,7 +500,7 @@ extern void musb_start(struct musb *musb);
 extern void musb_stop(struct musb *musb);
 
 extern void musb_write_fifo(struct musb_hw_ep *ep,
-                            u16 wCount, const u8 * pSource);
+                            u16 wCount, const u8 * src);
 extern void musb_read_fifo(struct musb_hw_ep *ep,
                               u16 wCount, u8 * pDest);
 
index 866169cc9323543499891f0c0c7724e5c4453d09..d7378e9d0df11b4b6d4032e85b8e0e4e2cc2c640 100644 (file)
@@ -169,40 +169,40 @@ static inline struct musb *dev_to_musb(struct device *dev)
 /*
  * Load an endpoint's FIFO
  */
-void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 wCount, const u8 *pSource)
+void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 wCount, const u8 *src)
 {
        void __iomem *fifo = hw_ep->fifo;
 
-       prefetch((u8 *)pSource);
+       prefetch((u8 *)src);
 
        DBG(4, "%cX ep%d fifo %p count %d buf %p\n",
-                       'T', hw_ep->bLocalEnd, fifo, wCount, pSource);
+                       'T', hw_ep->bLocalEnd, fifo, wCount, src);
 
        /* we can't assume unaligned reads work */
-       if (likely((0x01 & (unsigned long) pSource) == 0)) {
+       if (likely((0x01 & (unsigned long) src) == 0)) {
                u16     index = 0;
 
                /* best case is 32bit-aligned source address */
-               if ((0x02 & (unsigned long) pSource) == 0) {
+               if ((0x02 & (unsigned long) src) == 0) {
                        if (wCount >= 4) {
-                               writesl(fifo, pSource + index, wCount >> 2);
+                               writesl(fifo, src + index, wCount >> 2);
                                index += wCount & ~0x03;
                        }
                        if (wCount & 0x02) {
-                               musb_writew(fifo, 0, *(u16*)&pSource[index]);
+                               musb_writew(fifo, 0, *(u16*)&src[index]);
                                index += 2;
                        }
                } else {
                        if (wCount >= 2) {
-                               writesw(fifo, pSource + index, wCount >> 1);
+                               writesw(fifo, src + index, wCount >> 1);
                                index += wCount & ~0x01;
                        }
                }
                if (wCount & 0x01)
-                       musb_writeb(fifo, 0, pSource[index]);
+                       musb_writeb(fifo, 0, src[index]);
        } else  {
                /* byte aligned */
-               writesb(fifo, pSource, wCount);
+               writesb(fifo, src, wCount);
        }
 }