summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-07-19 01:14:31 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-07-19 01:14:31 +0200
commitba5bd49867dee5d873cb4450c930a71d13c5dbe2 (patch)
tree82c8f35c27f3113dbe17f1b74827b9c144d707e2 /linux/drivers
parente68d63cdeb1115d0fd27f54d413ba25c1b3216f9 (diff)
downloadmediapointer-dvb-s2-ba5bd49867dee5d873cb4450c930a71d13c5dbe2.tar.gz
mediapointer-dvb-s2-ba5bd49867dee5d873cb4450c930a71d13c5dbe2.tar.bz2
cs5345: fix incorrect mask with VIDIOC_DBG_S_REGISTER
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/cs5345.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cs5345.c b/linux/drivers/media/video/cs5345.c
index e2f0b0278..e4c505d2f 100644
--- a/linux/drivers/media/video/cs5345.c
+++ b/linux/drivers/media/video/cs5345.c
@@ -117,7 +117,7 @@ static int cs5345_command(struct i2c_client *client, unsigned cmd, void *arg)
if (cmd == VIDIOC_DBG_G_REGISTER)
reg->val = cs5345_read(client, reg->reg & 0x1f);
else
- cs5345_write(client, reg->reg & 0x1f, reg->val & 0x1f);
+ cs5345_write(client, reg->reg & 0x1f, reg->val & 0xff);
break;
}
#endif