diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-01-30 09:59:48 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-02-05 15:19:29 -0500 |
commit | 11d379395291609f95cf1e102f9f23892b83a493 (patch) | |
tree | b625df2601344a26d050bdd86345f94090f604ab | |
parent | 9bbc5820ffe1675c923ed0b82952cc64a610bd5d (diff) |
[media] bw-qcam: zero priv field
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>
-rw-r--r-- | drivers/media/parport/bw-qcam.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/parport/bw-qcam.c b/drivers/media/parport/bw-qcam.c index 5b75a64b199b..497b342b0f72 100644 --- a/drivers/media/parport/bw-qcam.c +++ b/drivers/media/parport/bw-qcam.c | |||
@@ -693,6 +693,7 @@ static int qcam_g_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format *f | |||
693 | pix->sizeimage = pix->width * pix->height; | 693 | pix->sizeimage = pix->width * pix->height; |
694 | /* Just a guess */ | 694 | /* Just a guess */ |
695 | pix->colorspace = V4L2_COLORSPACE_SRGB; | 695 | pix->colorspace = V4L2_COLORSPACE_SRGB; |
696 | pix->priv = 0; | ||
696 | return 0; | 697 | return 0; |
697 | } | 698 | } |
698 | 699 | ||
@@ -718,6 +719,7 @@ static int qcam_try_fmt_vid_cap(struct file *file, void *fh, struct v4l2_format | |||
718 | pix->sizeimage = pix->width * pix->height; | 719 | pix->sizeimage = pix->width * pix->height; |
719 | /* Just a guess */ | 720 | /* Just a guess */ |
720 | pix->colorspace = V4L2_COLORSPACE_SRGB; | 721 | pix->colorspace = V4L2_COLORSPACE_SRGB; |
722 | pix->priv = 0; | ||
721 | return 0; | 723 | return 0; |
722 | } | 724 | } |
723 | 725 | ||