提交 d718f4eb 编写于 作者: S Shawn Guo 提交者: Dan Williams

dmaengine: imx-sdma: fix inconsistent naming in sdma_assign_cookie()

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: NShawn Guo <shawn.guo@freescale.com>
Signed-off-by: NDan Williams <dan.j.williams@intel.com>
上级 939fd4f0
...@@ -770,15 +770,15 @@ static void sdma_enable_channel(struct sdma_engine *sdma, int channel) ...@@ -770,15 +770,15 @@ static void sdma_enable_channel(struct sdma_engine *sdma, int channel)
__raw_writel(1 << channel, sdma->regs + SDMA_H_START); __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) if (++cookie < 0)
cookie = 1; cookie = 1;
sdma->chan.cookie = cookie; sdmac->chan.cookie = cookie;
sdma->desc.cookie = cookie; sdmac->desc.cookie = cookie;
return cookie; return cookie;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册