Skip to content

Commit

Permalink
dmaengine: imx-sdma: fix inconsistent naming in sdma_assign_cookie()
Browse files Browse the repository at this point in the history
Variable name sdma and sdmac are consistently used as the pointer to
sdma_engine and sdma_channel respectively throughout the file.  The
patch fixes the inconsistency seen in function sdma_assign_cookie().

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
  • Loading branch information
Shawn Guo authored and Dan Williams committed Jan 30, 2011
1 parent 939fd4f commit d718f4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/dma/imx-sdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,15 +770,15 @@ static void sdma_enable_channel(struct sdma_engine *sdma, int channel)
__raw_writel(1 << channel, sdma->regs + SDMA_H_START);
}

static dma_cookie_t sdma_assign_cookie(struct sdma_channel *sdma)
static dma_cookie_t sdma_assign_cookie(struct sdma_channel *sdmac)
{
dma_cookie_t cookie = sdma->chan.cookie;
dma_cookie_t cookie = sdmac->chan.cookie;

if (++cookie < 0)
cookie = 1;

sdma->chan.cookie = cookie;
sdma->desc.cookie = cookie;
sdmac->chan.cookie = cookie;
sdmac->desc.cookie = cookie;

return cookie;
}
Expand Down

0 comments on commit d718f4e

Please sign in to comment.