]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
musb_hdrc: Search and replace dwCount with len
authorTony Lindgren <tony@atomide.com>
Mon, 13 Aug 2007 10:05:37 +0000 (03:05 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 13 Aug 2007 10:05:37 +0000 (03:05 -0700)
Search and replace dwCount with len

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

index 0209bd3c33c6891dbf2de88a5a90733a48c18844..6ec8f1a9d37e67cfc610af4eacce31ecc004a5a7 100644 (file)
@@ -75,7 +75,7 @@ struct musb_dma_channel {
        struct dma_channel              Channel;
        struct musb_dma_controller      *pController;
        u32                             dwStartAddress;
-       u32                             dwCount;
+       u32                             len;
        u16                             wMaxPacketSize;
        u8                              bIndex;
        u8                              bEnd;
@@ -162,7 +162,7 @@ static void dma_channel_release(struct dma_channel *pChannel)
 
        pChannel->dwActualLength = 0;
        pImplChannel->dwStartAddress = 0;
-       pImplChannel->dwCount = 0;
+       pImplChannel->len = 0;
 
        pImplChannel->pController->bmUsedChannels &=
                ~(1 << pImplChannel->bIndex);
@@ -237,7 +237,7 @@ static int dma_channel_program(struct dma_channel * pChannel,
 
        pChannel->dwActualLength = 0;
        pImplChannel->dwStartAddress = dma_addr;
-       pImplChannel->dwCount = dwLength;
+       pImplChannel->len = dwLength;
        pImplChannel->wMaxPacketSize = wPacketSize;
        pChannel->bStatus = MGC_DMA_STATUS_BUSY;
 
@@ -335,9 +335,9 @@ static irqreturn_t dma_controller_irq(int irq, void *pPrivateData)
                                DBG(2, "ch %p, 0x%x -> 0x%x (%d / %d) %s\n",
                                    pChannel, pImplChannel->dwStartAddress,
                                    dwAddress, pChannel->dwActualLength,
-                                   pImplChannel->dwCount,
+                                   pImplChannel->len,
                                    (pChannel->dwActualLength <
-                                       pImplChannel->dwCount) ?
+                                       pImplChannel->len) ?
                                        "=> reconfig 0": "=> complete");
 
                                u8 devctl = musb_readb(mbase,