Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306100
b: refs/heads/master
c: 812fe6d
h: refs/heads/master
v: v3
  • Loading branch information
Hans-Frieder Vogt authored and Mauro Carvalho Chehab committed Apr 9, 2012
1 parent 234f777 commit 562a9b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e8a5ac763d057fae50f2f7cc4fc830c5f815d26
refs/heads/master: 812fe6d9426a23ad78055f1fa955acef9bea9a93
11 changes: 1 addition & 10 deletions trunk/drivers/media/dvb/dvb-usb/af9035.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,24 +209,15 @@ static int af9035_i2c_master_xfer(struct i2c_adapter *adap,
msg[1].len);
} else {
/* I2C */
#if 0
/*
* FIXME: Keep that code. It should work but as it is
* not tested I left it disabled and return -EOPNOTSUPP
* for the sure.
*/
u8 buf[4 + msg[0].len];
struct usb_req req = { CMD_I2C_RD, 0, sizeof(buf),
buf, msg[1].len, msg[1].buf };
buf[0] = msg[0].len;
buf[0] = msg[1].len;
buf[1] = msg[0].addr << 1;
buf[2] = 0x01;
buf[3] = 0x00;
memcpy(&buf[4], msg[0].buf, msg[0].len);
ret = af9035_ctrl_msg(d->udev, &req);
#endif
pr_debug("%s: I2C operation not supported\n", __func__);
ret = -EOPNOTSUPP;
}
} else if (num == 1 && !(msg[0].flags & I2C_M_RD)) {
if (msg[0].len > 40) {
Expand Down

0 comments on commit 562a9b0

Please sign in to comment.