Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294811
b: refs/heads/master
c: bbceeee
h: refs/heads/master
i:
  294809: 0a622c4
  294807: 5cc2cc7
v: v3
  • Loading branch information
Alexander Stein authored and Wolfram Sang committed Mar 7, 2012
1 parent 271fb96 commit 1993f2c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 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: 0836c80901565e8549e17cbad6933ab7e48ef6b2
refs/heads/master: bbceeee82ef55c11db0161f4078edd79290e3bcf
8 changes: 0 additions & 8 deletions trunk/drivers/i2c/busses/i2c-eg20t.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,8 +784,6 @@ static s32 pch_i2c_xfer(struct i2c_adapter *i2c_adap,
struct i2c_msg *pmsg;
u32 i = 0;
u32 status;
u32 msglen;
u32 subaddrlen;
s32 ret;

struct i2c_algo_pch_data *adap = i2c_adap->algo_data;
Expand All @@ -810,12 +808,6 @@ static s32 pch_i2c_xfer(struct i2c_adapter *i2c_adap,
status = pmsg->flags;
pch_dbg(adap,
"After invoking I2C_MODE_SEL :flag= 0x%x\n", status);
/* calculate sub address length and message length */
/* these are applicable only for buffer mode */
subaddrlen = pmsg->buf[0];
/* calculate actual message length excluding
* the sub address fields */
msglen = (pmsg->len) - (subaddrlen + 1);

if ((status & (I2C_M_RD)) != false) {
ret = pch_i2c_readbytes(i2c_adap, pmsg, (i + 1 == num),
Expand Down

0 comments on commit 1993f2c

Please sign in to comment.