arc: simplify arc_dma_sync_single_for_{cpu,device}
authorChristoph Hellwig <hch@lst.de>
Fri, 18 May 2018 13:14:28 +0000 (15:14 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 19 May 2018 06:46:12 +0000 (08:46 +0200)
commit713a74624bba6c449213b6a7a2ab0065f6e2c7c9
tree1346178d77cb9014b78f2fcff1a76b6b7eb002d4
parent782e6769c0df744e773dc2acff71c974b3bba4e9
arc: simplify arc_dma_sync_single_for_{cpu,device}

Remove the indirection through _dma_cache_sync.  Also move the functions
up a bit in the source file as we'll need them in more places soon.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Alexey Brodkin <abrodkin@synopsys.com>
Acked-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/mm/dma.c