dma-buf: add dma_data_direction to unmap dma_buf_op
authorSumit Semwal <sumit.semwal@ti.com>
Fri, 27 Jan 2012 09:39:27 +0000 (14:39 +0530)
committerSumit Semwal <sumit.semwal@ti.com>
Mon, 26 Mar 2012 06:01:58 +0000 (11:01 +0530)
commit33ea2dcb39ba50b0b69d1b1dc24702f084b46411
treeec1e1b0c223e09861341f82d2aa0b13ec841be95
parent2ed9201bdd9a8e462d768a838fb2bc944c6887a4
dma-buf: add dma_data_direction to unmap dma_buf_op

Some exporters may use DMA map/unmap APIs in dma-buf ops, which require
enum dma_data_direction for both map and unmap operations.

Thus, the unmap dma_buf_op also needs to have enum dma_data_direction as
a parameter.

Reported-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
Signed-off-by: Sumit Semwal <sumit.semwal@ti.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
drivers/base/dma-buf.c
include/linux/dma-buf.h