]> git.baikalelectronics.ru Git - uboot.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)
commit5bf80e4363bf3c1fac3bd7adc444163fa7b43fbe
tree7940a854e832cd363c39326d377679bd947707b7
parent69129104d298ac05a3ac6d5da61f9e46b2dbc62c
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