Merge branch 'i2c/precise-locking-names_immutable' into i2c/for-4.19
This commit is contained in:
@@ -298,11 +298,11 @@ static int pca9541_probe(struct i2c_client *client,
|
||||
|
||||
/*
|
||||
* I2C accesses are unprotected here.
|
||||
* We have to lock the adapter before releasing the bus.
|
||||
* We have to lock the I2C segment before releasing the bus.
|
||||
*/
|
||||
i2c_lock_adapter(adap);
|
||||
i2c_lock_bus(adap, I2C_LOCK_SEGMENT);
|
||||
pca9541_release_bus(client);
|
||||
i2c_unlock_adapter(adap);
|
||||
i2c_unlock_bus(adap, I2C_LOCK_SEGMENT);
|
||||
|
||||
/* Create mux adapter */
|
||||
|
||||
|
Reference in New Issue
Block a user