Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108143
b: refs/heads/master
c: b25b791
h: refs/heads/master
i:
  108141: 1c1590b
  108139: c55185c
  108135: 26324df
  108127: b94b03d
v: v3
  • Loading branch information
Hans Verkuil authored and Jean Delvare committed Aug 10, 2008
1 parent 15e9436 commit f820210
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 399d6b26539d83dd734746dc2292d53fbc5807b2
refs/heads/master: b25b791b13aaa336b56c4f9bd417ff126363f80b
4 changes: 3 additions & 1 deletion trunk/drivers/i2c/i2c-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1451,9 +1451,11 @@ i2c_new_probed_device(struct i2c_adapter *adap,
if ((addr_list[i] & ~0x07) == 0x30
|| (addr_list[i] & ~0x0f) == 0x50
|| !i2c_check_functionality(adap, I2C_FUNC_SMBUS_QUICK)) {
union i2c_smbus_data data;

if (i2c_smbus_xfer(adap, addr_list[i], 0,
I2C_SMBUS_READ, 0,
I2C_SMBUS_BYTE, NULL) >= 0)
I2C_SMBUS_BYTE, &data) >= 0)
break;
} else {
if (i2c_smbus_xfer(adap, addr_list[i], 0,
Expand Down

0 comments on commit f820210

Please sign in to comment.