]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (8498): uvcvideo: Return sensible min and max values when querying a boolean...
authorLaurent Pinchart <laurent.pinchart@skynet.be>
Thu, 17 Jul 2008 10:37:37 +0000 (07:37 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sat, 26 Jul 2008 16:18:25 +0000 (13:18 -0300)
commit54812c77bc830e2dbcb62b4c6d8a9c7f97cfdd1b
treefc9fa9a0d6ed8b1af83f5d3f4f5a4a6e44653163
parent90ac5ea37f91e38d798c5e355232ce7f9c2a24d4
V4L/DVB (8498): uvcvideo: Return sensible min and max values when querying a boolean control.

Although the V4L2 spec states that the minimum and maximum fields may not be
valid for control types other than V4L2_CTRL_TYPE_INTEGER, it makes sense
to set the bounds to 0 and 1 for boolean controls instead of returning
uninitialized values.

Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/uvc/uvc_ctrl.c