]> git.baikalelectronics.ru Git - uboot.git/commit
i2c: muxes: pca954x: look up width from chip_desc
authorChris Packham <judge.packham@gmail.com>
Thu, 28 Sep 2017 21:53:36 +0000 (10:53 +1300)
committerHeiko Schocher <hs@denx.de>
Wed, 11 Oct 2017 04:17:22 +0000 (06:17 +0200)
commit4b0e92f1f17fd1f724dad5267e1a479647af8b4e
treedcb31609ff5744d36595d474bbcd64d1cfe33a89
parentcf6a87d3d5889381b5867248caf29f3173586d70
i2c: muxes: pca954x: look up width from chip_desc

Commit cffb311b1e9d ("drivers/i2c/muxes/pca954x: Add pca9547 I2C mux
support") introduced a chip_desc for the pca954x devices but failed to
update pca954x_ofdata_to_platdata() to be aware of it. Make
pca954x_ofdata_to_platdata() lookup the chip_desc to validate the device
width.

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Reviewed-by: Marek Behun <marek.behun@nic.cz>
drivers/i2c/muxes/pca954x.c