]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dma-buf: replace dma_buf_export() with dma_buf_export_named()
authorSumit Semwal <sumit.semwal@linaro.org>
Fri, 22 Mar 2013 12:52:16 +0000 (18:22 +0530)
committerSumit Semwal <sumit.semwal@linaro.org>
Wed, 1 May 2013 11:05:36 +0000 (16:35 +0530)
commit78df969550e7187f4dcd70b737217dcbc8e9a06a
treea10524a478ce83555904ce27363bd68140f031bc
parent5f56886521d6ddd3648777fae44d82382dd8c87f
dma-buf: replace dma_buf_export() with dma_buf_export_named()

For debugging purposes, it is useful to have a name-string added
while exporting buffers. Hence, dma_buf_export() is replaced with
dma_buf_export_named(), which additionally takes 'exp_name' as a
parameter.

For backward compatibility, and for lazy exporters who don't wish to
name themselves, a #define dma_buf_export() is also made available,
which adds a __FILE__ instead of 'exp_name'.

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
  [Thanks for the idea!]
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Documentation/dma-buf-sharing.txt
drivers/base/dma-buf.c
include/linux/dma-buf.h