i2c: i2c-mux-pca954x: convert to use an explicit i2c mux core
authorPeter Rosin <peda@axentia.se>
Wed, 20 Apr 2016 06:40:14 +0000 (08:40 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Fri, 22 Apr 2016 12:56:40 +0000 (14:56 +0200)
commit7fcac980717532a20762e03f0d228bfc58393ed3
tree795464bda31bd9a06dd5150e5021c116c941c983
parentab88b97c69ce375ef10c551133d6d19ffd55d763
i2c: i2c-mux-pca954x: convert to use an explicit i2c mux core

Allocate an explicit i2c mux core to handle parent and child adapters
etc. Update the select/deselect ops to be in terms of the i2c mux core
instead of the child adapter.

Add a mask to handle the case where not all child adapters should
cause a mux deselect to happen, now that there is a common deselect op
for all child adapters.

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