upstream: [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)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:52:06 +0000 (11:52 +0900)
commit82691686d1669e8fd8a813b6f808edeb55c5c1fd
tree0abd664bea7265829b25bf5035b336914c108c14
parent24e10af8a391e7c1e8ffa6bf5e2dbfaf221b361d
upstream: [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 64ae9958a62.
([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