aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2011-04-09 20:00:51 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-05-20 08:27:00 -0400
commitb3e6a5af2162d114df4fd67353bbadd3d8a22c3e (patch)
treed47238c80cb1855133fae9c1a0b81480d1236c33 /drivers
parent7ea03d211c055cfdef7930a29a11a54d2682f953 (diff)
[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')
-rw-r--r--drivers/media/dvb/dvb-usb/anysee.c2
-rw-r--r--drivers/media/dvb/dvb-usb/anysee.h2
2 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 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,
166 buf[2] = msg[i].buf[0]; 166 buf[2] = msg[i].buf[0];
167 buf[3] = 0x00; 167 buf[3] = 0x00;
168 buf[4] = 0x00; 168 buf[4] = 0x00;
169 buf[5] = 0x01; 169 buf[5] = msg[i+1].len;
170 ret = anysee_ctrl_msg(d, buf, sizeof(buf), msg[i+1].buf, 170 ret = anysee_ctrl_msg(d, buf, sizeof(buf), msg[i+1].buf,
171 msg[i+1].len); 171 msg[i+1].len);
172 inc = 2; 172 inc = 2;
diff --git a/drivers/media/dvb/dvb-usb/anysee.h b/drivers/media/dvb/dvb-usb/anysee.h
index 7ca01ff6e13c..686e06044fcb 100644
--- a/drivers/media/dvb/dvb-usb/anysee.h
+++ b/drivers/media/dvb/dvb-usb/anysee.h
@@ -136,7 +136,7 @@ General reply packet(s) are always used if not own reply defined.
136---------------------------------------------------------------------------- 136----------------------------------------------------------------------------
137| 04 | 0x00 137| 04 | 0x00
138---------------------------------------------------------------------------- 138----------------------------------------------------------------------------
139| 05 | 0x01 139| 05 | data length
140---------------------------------------------------------------------------- 140----------------------------------------------------------------------------
141| 06-59 | don't care 141| 06-59 | don't care
142---------------------------------------------------------------------------- 142----------------------------------------------------------------------------