From: Hans Verkuil Date: Mon, 10 Mar 2014 13:58:25 +0000 (-0300) Subject: [media] mem2mem_testdev: set priv to 0 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f063bb6638c5337929d091c0d3abdbd049f829ba;p=openwrt%2Fstaging%2Fblogic.git [media] mem2mem_testdev: set priv to 0 v4l2_compliance fix. Signed-off-by: Hans Verkuil Signed-off-by: Kamil Debski Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/mem2mem_testdev.c b/drivers/media/platform/mem2mem_testdev.c index 104d86318107..c4b54f8ac573 100644 --- a/drivers/media/platform/mem2mem_testdev.c +++ b/drivers/media/platform/mem2mem_testdev.c @@ -532,6 +532,7 @@ static int vidioc_try_fmt(struct v4l2_format *f, struct m2mtest_fmt *fmt) f->fmt.pix.width &= ~DIM_ALIGN_MASK; f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; + f->fmt.pix.priv = 0; return 0; }