summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/dvb-usb/anysee.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2011-04-13 02:49:25 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-05-20 16:27:11 +0400
commit882b82caf2cb8210e6829231cb352dea33f83f4c (patch)
treee732fa97514bb61aa7f249f78975cd504405b93a /drivers/media/dvb/dvb-usb/anysee.c
parente82eea79a3518e116f7e337fab2b5ca3072ed99c (diff)
downloadlinux-882b82caf2cb8210e6829231cb352dea33f83f4c.tar.xz
[media] anysee: add support for two byte I2C address
After that Anysee I2C adapter is capable of one and two byte long I2C addresses in case of read from I2C bus. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/anysee.c')
-rw-r--r--drivers/media/dvb/dvb-usb/anysee.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/dvb-usb/anysee.c b/drivers/media/dvb/dvb-usb/anysee.c
index 27019471cdd9..f365c2068e0f 100644
--- a/drivers/media/dvb/dvb-usb/anysee.c
+++ b/drivers/media/dvb/dvb-usb/anysee.c
@@ -186,8 +186,8 @@ static int anysee_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msg,
buf[0] = CMD_I2C_READ;
buf[1] = (msg[i].addr << 1) | 0x01;
buf[2] = msg[i].buf[0];
- buf[3] = 0x00;
- buf[4] = 0x00;
+ buf[3] = msg[i].buf[1];
+ buf[4] = msg[i].len-1;
buf[5] = msg[i+1].len;
ret = anysee_ctrl_msg(d, buf, sizeof(buf), msg[i+1].buf,
msg[i+1].len);