summaryrefslogtreecommitdiff
path: root/drivers/i2c/muxes
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2018-07-13 00:12:53 +0200
committerWolfram Sang <wsa@the-dreams.de>2018-07-13 00:12:53 +0200
commitfb2896a77989314ea89d89c3bdfee93002a760c9 (patch)
tree19df2cde875a69bcfe50296a2c9ae204ffdba0c1 /drivers/i2c/muxes
parent0bff2a86103e7bec979df9b9ff66c823a8d82d0a (diff)
parent3f3a89e1d7c31558c070692241e3d6146d2cf1bf (diff)
Merge branch 'i2c/precise-locking-names_immutable' into i2c/for-4.19
Diffstat (limited to 'drivers/i2c/muxes')
-rw-r--r--drivers/i2c/muxes/i2c-mux-pca9541.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/i2c/muxes/i2c-mux-pca9541.c b/drivers/i2c/muxes/i2c-mux-pca9541.c
index 3d8c938e99e7..9e75d6b9140b 100644
--- a/drivers/i2c/muxes/i2c-mux-pca9541.c
+++ b/drivers/i2c/muxes/i2c-mux-pca9541.c
@@ -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 */