]> git.baikalelectronics.ru Git - kernel.git/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)
commit2f83cbff163c0650b59f7f661528e2c7846498e3
tree3489f5c09d069a4ef4454882c6e3835bf1ddb722
parent77b79100741c3b7de034c3a372aaf416d707cfe8
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