common: add dma_mmap_from_coherent() function
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 23 Mar 2012 12:05:14 +0000 (13:05 +0100)
committerHiroshi Doyu <hdoyu@nvidia.com>
Fri, 7 Sep 2012 08:46:06 +0000 (11:46 +0300)
commite5e8f8dcbba7c8a4477600f35259c3a221ae13de
treef65ef6e110498701b000edf418f59ef89c72ad67
parent2d3c613fb73f7dbd44a95fbc1a2ff89fed961dd9
common: add dma_mmap_from_coherent() function

Add a common helper for dma-mapping core for mapping a coherent buffer
to userspace.

Reported-by: Subash Patel <subashrp@gmail.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Tested-By: Subash Patel <subash.ramaswamy@linaro.org>
drivers/base/dma-coherent.c
include/asm-generic/dma-coherent.h