fimc-is-2: move to the new dma-buf-container
authorCho KyongHo <pullip.cho@samsung.com>
Fri, 25 May 2018 11:33:41 +0000 (20:33 +0900)
committerEunyoung Lee <ey470.lee@samsung.com>
Tue, 19 Jun 2018 08:43:38 +0000 (17:43 +0900)
commit0439e8d3fe98cb4a75019d7366a9fb49666be623
tree1464c0e350e3667190ceede491342f98d2cc035b
parent32a0dc57480f2380e3f3c6bdb841e972eae265b0
fimc-is-2: 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: I8c8c6698a513e6c18bbc43a4734594a484028699
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-video.c