mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[PATCH] i2c: Rework client usage count, 1 of 3
No i2c client uses the I2C_CLIENT_ALLOW_MULTIPLE_USE flag, drop it. Signed-off-by: Jean Delvare <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
5d7b851dcc
commit
cb748fb201
2 changed files with 1 additions and 5 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue