Skip to content

Commit

Permalink
V4L/DVB (8422): cs5345: fix incorrect mask with VIDIOC_DBG_S_REGISTER
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jul 23, 2008
1 parent 7fd4828 commit bcf4562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/cs5345.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bcf4562

Please sign in to comment.