summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2006-01-09 15:32:44 -0200
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-09 15:32:44 -0200
commit0de71224d17f43101fa20696a8d7a78fb599557e (patch)
tree20fee7b02c3a0f7d17596c10c7b975f3e93b79ff
parentc5099a6481d2d0f9455abd15c91f73c2ced57a40 (diff)
downloadlinux-3.10-0de71224d17f43101fa20696a8d7a78fb599557e.tar.gz
linux-3.10-0de71224d17f43101fa20696a8d7a78fb599557e.tar.bz2
linux-3.10-0de71224d17f43101fa20696a8d7a78fb599557e.zip
V4L/DVB (3292): Fix signed/unsigned bug in brightness handling of cx25840
- Fix signed/unsigned bug in brightness handling (set to 0 and 128 was returned). Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
-rw-r--r--drivers/media/video/cx25840/cx25840-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx25840/cx25840-core.c b/drivers/media/video/cx25840/cx25840-core.c
index b93495b2a1f..29b378b6097 100644
--- a/drivers/media/video/cx25840/cx25840-core.c
+++ b/drivers/media/video/cx25840/cx25840-core.c
@@ -457,7 +457,7 @@ static int get_v4lctrl(struct i2c_client *client, struct v4l2_control *ctrl)
ctrl->value = state->pvr150_workaround;
break;
case V4L2_CID_BRIGHTNESS:
- ctrl->value = cx25840_read(client, 0x414) + 128;
+ ctrl->value = (s8)cx25840_read(client, 0x414) + 128;
break;
case V4L2_CID_CONTRAST:
ctrl->value = cx25840_read(client, 0x415) >> 1;