From: Hans Verkuil Date: Mon, 9 Jan 2006 17:32:43 +0000 (-0200) Subject: V4L/DVB (3291): Fix signed/unsigned bug in hue handling X-Git-Tag: v2.6.16-rc1~663^2~28 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c5099a6481d2d0f9455abd15c91f73c2ced57a40;p=linux-2.6-omap-h63xx.git V4L/DVB (3291): Fix signed/unsigned bug in hue handling - Fix signed/unsigned bug in hue handling (set to -127 and 129 was returned). Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/cx25840/cx25840-core.c b/drivers/media/video/cx25840/cx25840-core.c index d7ece6eecb5..b93495b2a1f 100644 --- a/drivers/media/video/cx25840/cx25840-core.c +++ b/drivers/media/video/cx25840/cx25840-core.c @@ -466,7 +466,7 @@ static int get_v4lctrl(struct i2c_client *client, struct v4l2_control *ctrl) ctrl->value = cx25840_read(client, 0x420) >> 1; break; case V4L2_CID_HUE: - ctrl->value = cx25840_read(client, 0x422); + ctrl->value = (s8)cx25840_read(client, 0x422); break; case V4L2_CID_AUDIO_VOLUME: case V4L2_CID_AUDIO_BASS: