diff options
author | Jose Alberto Reguero <jareguero@telefonica.net> | 2011-10-16 12:36:57 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-24 17:25:17 +0100 |
commit | a23d9d1227f05cf96d195401fe2af2c14ea44b92 (patch) | |
tree | 3ebdf35eaac18cf40dbda4ff3f9b4b2f79d211ac /drivers/media/dvb/dvb-usb/ttusb2.c | |
parent | [media] ir-sanyo-decoder.c doesn't compile (diff) | |
download | linux-a23d9d1227f05cf96d195401fe2af2c14ea44b92.tar.xz linux-a23d9d1227f05cf96d195401fe2af2c14ea44b92.zip |
[media] TT CT-3650 i2c fix
This patch fix a bug in the i2c code of ttusb2 driver.
Signed-off-by: Jose Alberto Reguero <jareguero@telefonica.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/ttusb2.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/ttusb2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-usb/ttusb2.c b/drivers/media/dvb/dvb-usb/ttusb2.c index faed393c08b6..bc50356c5fb6 100644 --- a/drivers/media/dvb/dvb-usb/ttusb2.c +++ b/drivers/media/dvb/dvb-usb/ttusb2.c @@ -397,7 +397,7 @@ static int ttusb2_i2c_xfer(struct i2c_adapter *adap,struct i2c_msg msg[],int num memcpy(&obuf[3], msg[i].buf, msg[i].len); - if (ttusb2_msg(d, CMD_I2C_XFER, obuf, msg[i].len+3, ibuf, obuf[2] + 3) < 0) { + if (ttusb2_msg(d, CMD_I2C_XFER, obuf, obuf[1]+3, ibuf, obuf[2] + 3) < 0) { err("i2c transfer failed."); break; } |