Skip to content
Commit d8fbe341 authored by Sumit Semwal's avatar Sumit Semwal
Browse files

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: default avatarMaarten Lankhorst <maarten.lankhorst@canonical.com>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Acked-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
Acked-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarSumit Semwal <sumit.semwal@linaro.org>
parent 646da631
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment