Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254191
b: refs/heads/master
c: cd823db
h: refs/heads/master
i:
  254189: 750a01a
  254187: 9820281
  254183: 1c6e99f
  254175: 8297a3c
v: v3
  • Loading branch information
Petri Gynther authored and Jean Delvare committed Jun 29, 2011
1 parent 5a83ef2 commit 17016ae
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 9b640f2e154268cb516efcaf9c434f2e73c6783e
refs/heads/master: cd823db8b1161ef0d756514d280715a576d65cc3
7 changes: 4 additions & 3 deletions trunk/drivers/i2c/muxes/pca954x.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,11 @@ static int pca954x_probe(struct i2c_client *client,

i2c_set_clientdata(client, data);

/* Read the mux register at addr to verify
* that the mux is in fact present.
/* Write the mux register at addr to verify
* that the mux is in fact present. This also
* initializes the mux to disconnected state.
*/
if (i2c_smbus_read_byte(client) < 0) {
if (i2c_smbus_write_byte(client, 0) < 0) {
dev_warn(&client->dev, "probe failed\n");
goto exit_free;
}
Expand Down

0 comments on commit 17016ae

Please sign in to comment.