]> git.baikalelectronics.ru Git - kernel.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)
commit5f15df3f61e43e7f5334d7f0e08098288cec19fa
treea10524a478ce83555904ce27363bd68140f031bc
parent2db7203c9ded8013df566481c753f92ecef03521
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