DMA: shdma: tidyup callback chunk finder
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 3 Apr 2014 03:16:51 +0000 (20:16 -0700)
committerVinod Koul <vinod.koul@intel.com>
Fri, 2 May 2014 16:17:01 +0000 (21:47 +0530)
commit91ea74e9ec5c584eef1dcd69554b8315c1ebb0d9
treebf0b97c55ae7b67339a7116f13097c741e9c9918
parent593d9c2e10bc66f1c5cf1adb5eeb709432eb616d
DMA: shdma: tidyup callback chunk finder

Current shdma is using "last" which indicates last desc which needs to have
callback function. But that desc's chunks is always 1, we can use it as finder

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
[reflown changelog for readablity]
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sh/shdma-base.c