[media] media: videobuf2: Change queue_setup argument
Replace struct v4l2_format * with void * to make queue_setup() for common use. And then, modify all device drivers related with this change. Signed-off-by: Junghak Sung <jh1009.sung@samsung.com> Signed-off-by: Geunyoung Kim <nenggun.kim@samsung.com> Acked-by: Seung-Woo Kim <sw0312.kim@samsung.com> Acked-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> [hans.verkuil@cisco.com: fix missing const in fimc-lite.c] Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
4d0b0ed636
commit
33119e80c3
@@ -338,10 +338,11 @@ int fimc_capture_resume(struct fimc_dev *fimc)
|
||||
|
||||
}
|
||||
|
||||
static int queue_setup(struct vb2_queue *vq, const struct v4l2_format *pfmt,
|
||||
static int queue_setup(struct vb2_queue *vq, const void *parg,
|
||||
unsigned int *num_buffers, unsigned int *num_planes,
|
||||
unsigned int sizes[], void *allocators[])
|
||||
{
|
||||
const struct v4l2_format *pfmt = parg;
|
||||
const struct v4l2_pix_format_mplane *pixm = NULL;
|
||||
struct fimc_ctx *ctx = vq->drv_priv;
|
||||
struct fimc_frame *frame = &ctx->d_frame;
|
||||
|
Reference in New Issue
Block a user