diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-07-19 03:14:31 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-23 15:09:18 +0400 |
commit | bcf4562ecbc35dabacc562fdf6c92218ca59ca94 (patch) | |
tree | 58685571600184e8eaaa1750683a09c7b3046ef3 /drivers/media/video | |
parent | 7fd4828f6cc5bd4339ff58e372ccb5f528548b30 (diff) | |
download | linux-bcf4562ecbc35dabacc562fdf6c92218ca59ca94.tar.xz |
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>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | 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 1c3fa3a7470a..61d14d26686f 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 |