From: Márton Németh Date: Mon, 20 Apr 2009 17:51:49 +0000 (-0300) Subject: V4L/DVB (11574): uvcvideo: fill reserved fields with zero of VIDIOC_QUERYMENU X-Git-Tag: v2.6.31-rc1~297^2~343 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2460cdac94082c7046ab595bf643338e6faed6cb;p=pandora-kernel.git V4L/DVB (11574): uvcvideo: fill reserved fields with zero of VIDIOC_QUERYMENU When querying menu items with VIDIOC_QUERYMENU the reserved field is not set to zero as required by V4L2 API revision 0.24 [1]. Add this fill. The patch was tested with v4l-test 0.11 [2] with CNF7129 webcam found on EeePC 901. References: [1] V4L2 API specification, revision 0.24 http://v4l2spec.bytesex.org/spec/r13317.htm#V4L2-QUERYMENU [2] v4l-test: Test environment for Video For Linux Two API http://v4l-test.sourceforge.net/ [Modified by Laurent Pinchart] Use u32 instead of __u32 in non-exported kernel code. Signed-off-by: Márton Németh Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed