Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16683
b: refs/heads/master
c: cb748fb
h: refs/heads/master
i:
  16681: cf5a05c
  16679: 80df7f6
v: v3
  • Loading branch information
Jean Delvare authored and Greg Kroah-Hartman committed Jan 6, 2006
1 parent c7fc33d commit 7d878c1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 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: 5d7b851dcced3611e4a4432308618b1ed1a9fc31
refs/heads/master: cb748fb20186d4b345c68a7f580429f379fdd268
4 changes: 1 addition & 3 deletions trunk/drivers/i2c/i2c-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,7 @@ int i2c_use_client(struct i2c_client *client)
return ret;

if (client->flags & I2C_CLIENT_ALLOW_USE) {
if (client->flags & I2C_CLIENT_ALLOW_MULTIPLE_USE)
client->usage_count++;
else if (client->usage_count > 0)
if (client->usage_count > 0)
goto busy;
else
client->usage_count++;
Expand Down
2 changes: 0 additions & 2 deletions trunk/include/linux/i2c.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,6 @@ static inline void i2c_set_adapdata (struct i2c_adapter *dev, void *data)

/*flags for the client struct: */
#define I2C_CLIENT_ALLOW_USE 0x01 /* Client allows access */
#define I2C_CLIENT_ALLOW_MULTIPLE_USE 0x02 /* Allow multiple access-locks */
/* on an i2c_client */
#define I2C_CLIENT_PEC 0x04 /* Use Packet Error Checking */
#define I2C_CLIENT_TEN 0x10 /* we have a ten bit chip address */
/* Must equal I2C_M_TEN below */
Expand Down

0 comments on commit 7d878c1

Please sign in to comment.