]> git.sur5r.net Git - u-boot/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)
commit5bc90a8953a902152bd640322ffc8111dccbe3ab
treedcb31609ff5744d36595d474bbcd64d1cfe33a89
parent45c9d96ae40b0c4292eb67d687f0bf698a0ce72b
i2c: muxes: pca954x: look up width from chip_desc

Commit 8e6eda7cda6c ("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