]> git.baikalelectronics.ru Git - uboot.git/commit
i2c: fix always-true condition in i2c_probe_chip()
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>
Tue, 15 Feb 2022 17:58:52 +0000 (20:58 +0300)
committerHeiko Schocher <hs@denx.de>
Wed, 23 Mar 2022 06:27:37 +0000 (07:27 +0100)
commitc37b5be5b353260fa6b0e1108679773b4856af0d
tree3b14573232c05b08839231408b74afdcbc272b9b
parent8e18df6a73c2784024a397d8023cea94c7b1d644
i2c: fix always-true condition in i2c_probe_chip()

Per dm_i2c_ops.probe_chip documentation, i2c_probe_chip() shall fallback
to default probe method when .probe_chip() returns -ENOSYS.

Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/i2c-uclass.c