diff options
author | Antti Palosaari <crope@iki.fi> | 2011-04-09 21:00:51 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-05-20 09:27:00 -0300 |
commit | b3e6a5af2162d114df4fd67353bbadd3d8a22c3e (patch) | |
tree | d47238c80cb1855133fae9c1a0b81480d1236c33 /drivers/media/dvb/dvb-usb/anysee.c | |
parent | 7ea03d211c055cfdef7930a29a11a54d2682f953 (diff) | |
download | blackbird-op-linux-b3e6a5af2162d114df4fd67353bbadd3d8a22c3e.tar.gz blackbird-op-linux-b3e6a5af2162d114df4fd67353bbadd3d8a22c3e.zip |
[media] anysee: fix multibyte I2C read
It can read more than one byte from I2C bus. Allow that.
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/anysee.c b/drivers/media/dvb/dvb-usb/anysee.c index 18184d30e481..554186205eec 100644 --- a/drivers/media/dvb/dvb-usb/anysee.c +++ b/drivers/media/dvb/dvb-usb/anysee.c @@ -166,7 +166,7 @@ static int anysee_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msg, buf[2] = msg[i].buf[0]; buf[3] = 0x00; buf[4] = 0x00; - buf[5] = 0x01; + buf[5] = msg[i+1].len; ret = anysee_ctrl_msg(d, buf, sizeof(buf), msg[i+1].buf, msg[i+1].len); inc = 2; |