V4L/DVB (8422): cs5345: fix incorrect mask with VIDIOC_DBG_S_REGISTER

Previous thread: V4L/DVB (8247): Fix a const pointer assignment error in the drx397xD demodulator driver by Linux Kernel Mailing List on Monday, July 28, 2008 - 10:00 am. (1 message)

Next thread: V4L/DVB (8423): cx18: remove firmware size check by Linux Kernel Mailing List on Monday, July 28, 2008 - 10:01 am. (1 message)
From: Linux Kernel Mailing List
Date: Monday, July 28, 2008 - 10:01 am

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bcf456...
Commit:     bcf4562ecbc35dabacc562fdf6c92218ca59ca94
Parent:     7fd4828f6cc5bd4339ff58e372ccb5f528548b30
Author:     Hans Verkuil <hverkuil@xs4all.nl>
AuthorDate: Fri Jul 18 20:14:31 2008 -0300
Committer:  Mauro Carvalho Chehab <mchehab@infradead.org>
CommitDate: Wed Jul 23 08:09:18 2008 -0300

    V4L/DVB (8422): cs5345: fix incorrect mask with VIDIOC_DBG_S_REGISTER
    
    Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
---
 drivers/media/video/cs5345.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/cs5345.c b/drivers/media/video/cs5345.c
index 1c3fa3a..61d14d2 100644
--- a/drivers/media/video/cs5345.c
+++ b/drivers/media/video/cs5345.c
@@ -111,7 +111,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
--

Previous thread: V4L/DVB (8247): Fix a const pointer assignment error in the drx397xD demodulator driver by Linux Kernel Mailing List on Monday, July 28, 2008 - 10:00 am. (1 message)

Next thread: V4L/DVB (8423): cx18: remove firmware size check by Linux Kernel Mailing List on Monday, July 28, 2008 - 10:01 am. (1 message)