From: Russell King - ARM Linux Date: Tue, 6 Mar 2012 22:35:27 +0000 (+0000) Subject: dmaengine: consolidate tx_status functions X-Git-Tag: v3.4-rc1~39^2~20^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96a2af41c78b1fbb1f567a3486bdc63f7b31c5fd;p=pandora-kernel.git dmaengine: consolidate tx_status functions Now that we have the completed cookie in the dma_chan structure, we can consolidate the tx_status functions by providing a function to set the txstate structure and returning the DMA status. We also provide a separate helper to set the residue for cookies which are still in progress. Signed-off-by: Russell King Tested-by: Linus Walleij Reviewed-by: Linus Walleij Acked-by: Jassi Brar [imx-sdma.c & mxs-dma.c] Tested-by: Shawn Guo Signed-off-by: Vinod Koul --- Reading git-diff-tree failed