Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193187
b: refs/heads/master
c: b5c80bc
h: refs/heads/master
i:
  193185: bdad345
  193183: 48c72f2
v: v3
  • Loading branch information
Wolfram Sang authored and Ben Dooks committed May 19, 2010
1 parent 6210611 commit dd19a8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: f0ec9e20bab214f4a26e6fdaaf5c2a6b2f2640d7
refs/heads/master: b5c80bc5d70a1ce5b071ed06dd95292b9de46f95
5 changes: 2 additions & 3 deletions trunk/drivers/i2c/busses/i2c-highlander.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ static int highlander_i2c_smbus_xfer(struct i2c_adapter *adap, u16 addr,
union i2c_smbus_data *data)
{
struct highlander_i2c_dev *dev = i2c_get_adapdata(adap);
int read = read_write & I2C_SMBUS_READ;
u16 tmp;

init_completion(&dev->cmd_complete);
Expand Down Expand Up @@ -337,11 +336,11 @@ static int highlander_i2c_smbus_xfer(struct i2c_adapter *adap, u16 addr,
highlander_i2c_done(dev);

/* Set slave address */
iowrite16((addr << 1) | read, dev->base + SMSMADR);
iowrite16((addr << 1) | read_write, dev->base + SMSMADR);

highlander_i2c_command(dev, command, dev->buf_len);

if (read)
if (read_write == I2C_SMBUS_READ)
return highlander_i2c_read(dev);
else
return highlander_i2c_write(dev);
Expand Down

0 comments on commit dd19a8d

Please sign in to comment.