[media] cx231xx: zero priv field and use right width in try_fmt
authorHans Verkuil <hans.verkuil@cisco.com>
Sat, 9 Feb 2013 09:35:02 +0000 (06:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Mar 2013 17:25:58 +0000 (14:25 -0300)
commit8b735c130717cb0af7793e30bbb6e91709ef10f8
treeb4e2d3354c8d745f3036142ee85af237481cbb99
parentb251f95767e1b13b9b32b207b53f5be1c491899e
[media] cx231xx: zero priv field and use right width in try_fmt

The priv field of v4l2_pix_format must be zeroed. Also fix a bug in try_fmt
where the current width was used instead of the width passed to try_fmt.

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