media: rockchip/vpu: Open-code media controller register
authorEzequiel Garcia <ezequiel@collabora.com>
Tue, 28 May 2019 17:02:21 +0000 (13:02 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 29 May 2019 14:56:02 +0000 (10:56 -0400)
commitb1c6cc64dd140df856ef9a3265a22772bf819f88
tree26b0c022a250d87a4ec14c847b00b6f1fb16d25c
parent0a4f091c12b3eacfbae361ee86427b2c766e37a3
media: rockchip/vpu: Open-code media controller register

In preparation to support decoders, using a single memory-to-memory
device, we need to roll our own media controller entities registration.

To do that, we define a rockchip_vpu_func object that embeds the
video_device object plus all the elements that are needed to attach this
vdev to the media device.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/rockchip/vpu/rockchip_vpu.h
drivers/staging/media/rockchip/vpu/rockchip_vpu_drv.c