i2c: mux: pca954x: verify the device id of the pca984x chips
authorPeter Rosin <peda@axentia.se>
Mon, 22 Jan 2018 07:40:02 +0000 (08:40 +0100)
committerPeter Rosin <peda@axentia.se>
Tue, 6 Mar 2018 09:57:59 +0000 (10:57 +0100)
commit2d74187d5b4e29776e151ffcc09bdaedfd46e002
tree4b2a2db9d0e15e2984bf36bb87433ca3a6795757
parentdde67eb1beebcd8493e7b30e74a80f0865ab7e36
i2c: mux: pca954x: verify the device id of the pca984x chips

Make sure to not disallow the chips on adapters that are not capable
of reading the device id, but also make sure to check the device id
before writing to the chip.

Tested-by: Adrian Fiergolski <adrian.fiergolski@cern.ch>
Signed-off-by: Peter Rosin <peda@axentia.se>
drivers/i2c/muxes/i2c-mux-pca954x.c