Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268330
b: refs/heads/master
c: 7bfcbd6
h: refs/heads/master
v: v3
  • Loading branch information
Leonid V. Fedorenchik authored and Greg Kroah-Hartman committed Sep 12, 2011
1 parent 8f6a310 commit 55f7468
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 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: 1c2b5520325a27efa2ac40edaa0ed62f3575d081
refs/heads/master: 7bfcbd6733bec1c555e62fbc39d1d9dc47ccd852
30 changes: 15 additions & 15 deletions trunk/drivers/staging/cx25821/cx25821-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,16 +370,16 @@ int cx25821_i2c_read(struct cx25821_i2c *bus, u16 reg_addr, int *value)

struct i2c_msg msgs[2] = {
{
.addr = client->addr,
.flags = 0,
.len = 2,
.buf = addr,
}, {
.addr = client->addr,
.flags = I2C_M_RD,
.len = 4,
.buf = buf,
}
.addr = client->addr,
.flags = 0,
.len = 2,
.buf = addr,
}, {
.addr = client->addr,
.flags = I2C_M_RD,
.len = 4,
.buf = buf,
}
};

addr[0] = (reg_addr >> 8);
Expand All @@ -403,11 +403,11 @@ int cx25821_i2c_write(struct cx25821_i2c *bus, u16 reg_addr, int value)

struct i2c_msg msgs[1] = {
{
.addr = client->addr,
.flags = 0,
.len = 6,
.buf = buf,
}
.addr = client->addr,
.flags = 0,
.len = 6,
.buf = buf,
}
};

buf[0] = reg_addr >> 8;
Expand Down

0 comments on commit 55f7468

Please sign in to comment.