[media] bw-qcam: zero priv field
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 30 Jan 2013 14:59:48 +0000 (11:59 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Feb 2013 20:19:29 +0000 (18:19 -0200)
Fix a v4l2-compliance problem: the priv field of v4l2_pix_format must be
cleared by drivers.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/parport/bw-qcam.c

index 5b75a64b199bc924016a3d75e13a0c48f87a82e9..497b342b0f72d6d5332180e54f371f74185d5d24 100644 (file)
@@ -693,6 +693,7 @@ static int qcam_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f
        pix->sizeimage = pix->width * pix->height;
        /* Just a guess */
        pix->colorspace = V4L2_COLORSPACE_SRGB;
+       pix->priv = 0;
        return 0;
 }
 
@@ -718,6 +719,7 @@ static int qcam_try_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format
        pix->sizeimage = pix->width * pix->height;
        /* Just a guess */
        pix->colorspace = V4L2_COLORSPACE_SRGB;
+       pix->priv = 0;
        return 0;
 }
 
This page took 0.027877 seconds and 5 git commands to generate.