media: staging/imx: Pass device to alloc/free_dma_buf
authorSteve Longerbeam <slongerbeam@gmail.com>
Fri, 10 May 2019 21:50:06 +0000 (17:50 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 28 May 2019 18:09:02 +0000 (14:09 -0400)
commit34ff38745b166f317530c05ac881aafc20c33041
tree1ab2bf03a1de6070730bf6d2cced6c2fe230981a
parent6d01b7ff523375e22db5d2c37a18bdf332376b2f
media: staging/imx: Pass device to alloc/free_dma_buf

Allocate and free a DMA coherent buffer in imx_media_alloc/free_dma_buf()
from the given device. This allows DMA alloc and free using a device
that is backed by real hardware, which for the imx5/6/7 CSI is the CSI
unit, and for the internal IPU sub-devices, is the parent IPU.

Signed-off-by: Steve Longerbeam <slongerbeam@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/imx/imx-ic-prpencvf.c
drivers/staging/media/imx/imx-media-csi.c
drivers/staging/media/imx/imx-media-utils.c
drivers/staging/media/imx/imx-media.h
drivers/staging/media/imx/imx7-media-csi.c