]> git.baikalelectronics.ru Git - kernel.git/commit
[media] uvcvideo: Fix data type for pan/tilt control
authorChanho Min <chanho.min@lge.com>
Fri, 27 Sep 2013 04:57:40 +0000 (01:57 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 17 Oct 2013 09:55:29 +0000 (06:55 -0300)
commit94245ee4b037be0f82bb9c7147c51db0505a4bc2
tree2074caa5925ab1c7d8e999399b214c35043cf37b
parentb2c90860ca79ec428598104b7b1929edabcca6f6
[media] uvcvideo: Fix data type for pan/tilt control

The pan/tilt absolute control value is signed value. If minimum value
is minus, It will be changed to plus by clamp_t() as commit c3d39272168.
([media] uvcvideo: Fix control value clamping for unsigned integer controls).
It leads to wrong setting of the control values. For example,
when min and max are -36000 and 36000, the setting value between of this range
is always 36000. So, its data type should be changed to signed.

Signed-off-by: Chanho Min <chanho.min@lge.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/usb/uvc/uvc_ctrl.c