]> git.ipfire.org Git - thirdparty/u-boot.git/commit
dm: i2c: Make i2c_get_chip_for_busnum() fail if the chip is not detected
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Fri, 7 Dec 2018 13:50:38 +0000 (14:50 +0100)
committerHeiko Schocher <hs@denx.de>
Mon, 10 Dec 2018 05:03:45 +0000 (06:03 +0100)
commitf32a8007ef0fcc1a8f27e0cb444f6861163b03f6
tree7940a854e832cd363c39326d377679bd947707b7
parent65a97e7fcf54feb7c4ebe1aee8a572830af4cf51
dm: i2c: Make i2c_get_chip_for_busnum() fail if the chip is not detected

i2c_get_chip_for_busnum() really should check the presence of the chip on
the bus. Most of the users of this function assume that this is done.

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/i2c-uclass.c