i2c: muxes always lock the parent adapter
authorPeter Rosin <peda@axentia.se>
Wed, 4 May 2016 20:15:28 +0000 (22:15 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 4 May 2016 20:28:31 +0000 (22:28 +0200)
commitfa96f0cb9b37a1a296d18f7bde63b0910852303e
tree648fadf4d45091fb4e92fcf6e7f6f50e51bb13b1
parent8320f495cf441d593f7cd4f30e6b63455be71a2c
i2c: muxes always lock the parent adapter

Instead of checking for i2c parent adapters for every lock/unlock, simply
override the locking for muxes to always lock/unlock the parent adapter
directly.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core.c
drivers/i2c/i2c-mux.c