]> err.no Git - linux-2.6/commit
V4L/DVB (7302): pvrusb2: Improve control validation for enumerations
authorMike Isely <isely@pobox.com>
Tue, 22 Apr 2008 17:45:38 +0000 (14:45 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:07:47 +0000 (14:07 -0300)
commitfdf256f3374d5060e3714651b45b8450b7dc4349
tree3489f5c09d069a4ef4454882c6e3835bf1ddb722
parentbedbbf8be2f28c9f8a8cf1e2ead4fda8b5f47103
V4L/DVB (7302): pvrusb2: Improve control validation for enumerations

When an enumeration control is changed, the pvrusb2 driver assumed
that the enumeration values were continuous.  That is no longer true;
this change allows for properly input validation even when not all
enumeration values are legal (which can happen with input selection
based on what the hardware supports).

Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/pvrusb2/pvrusb2-ctrl.c