[COMMON] media: mfc: move to the new dma-buf-container
authorCho KyongHo <pullip.cho@samsung.com>
Fri, 13 Apr 2018 05:02:46 +0000 (14:02 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Tue, 29 May 2018 06:59:18 +0000 (15:59 +0900)
commit3d087da22e2d5058ce402a25a47ef6dac1bce3c4
tree53a5096a8f77313baaed65b0ff821c2328ee6a64
parent0f362251da91d756743f58cc78bc7c8d43b5832f
[COMMON] media: mfc: move to the new dma-buf-container

The new, working dma-buf-container is introduced by the commit
ee1d9055d ('dma-buf: introduce dma-buf container'). It still supports
the same API functions but the contexts are slightly changed because
the design of dma-buf-container is changed.

Specifically, dmabuf_container_get_count() now returns -EINVAL instead
of 0 for the dma-bufs that is not a dma-buf-container. This change of
return value comes from the fact that dma-buf-container allows having
no dma-buf by its design although it is impossible to create an empty
dma-buf-container in practice.

Change-Id: I38b7534b2e0bb30e8ec331d019a089736d847dbe
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/media/platform/exynos/mfc/s5p_mfc_common.h
drivers/media/platform/exynos/mfc/s5p_mfc_enc_vb2_ops.c