dma-buf: cleanup dma_buf_export() to make it easily extensible
authorSumit Semwal <sumit.semwal@linaro.org>
Fri, 23 Jan 2015 07:23:43 +0000 (12:53 +0530)
committerSumit Semwal <sumit.semwal@linaro.org>
Tue, 21 Apr 2015 09:17:16 +0000 (14:47 +0530)
commitd8fbe341beb617ebb22b98fb893e4aa32ae2d864
tree2e19c951d2b6ffef2319d87ec8a6c39e4e1ab8ee
parent646da63172f660ba84f195c1165360a9b73583ee
dma-buf: cleanup dma_buf_export() to make it easily extensible

At present, dma_buf_export() takes a series of parameters, which
makes it difficult to add any new parameters for exporters, if required.

Make it simpler by moving all these parameters into a struct, and pass
the struct * as parameter to dma_buf_export().

While at it, unite dma_buf_export_named() with dma_buf_export(), and
change all callers accordingly.

Reviewed-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Acked-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
15 files changed:
Documentation/dma-buf-sharing.txt
drivers/dma-buf/dma-buf.c
drivers/gpu/drm/armada/armada_gem.c
drivers/gpu/drm/drm_prime.c
drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
drivers/gpu/drm/i915/i915_gem_dmabuf.c
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c
drivers/gpu/drm/tegra/gem.c
drivers/gpu/drm/ttm/ttm_object.c
drivers/gpu/drm/udl/udl_dmabuf.c
drivers/media/v4l2-core/videobuf2-dma-contig.c
drivers/media/v4l2-core/videobuf2-dma-sg.c
drivers/media/v4l2-core/videobuf2-vmalloc.c
drivers/staging/android/ion/ion.c
include/linux/dma-buf.h