]> git.dujemihanovic.xyz Git - u-boot.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)
commit6db539f983400279cd682fecbbd1fdd4c96d9034
tree3b14573232c05b08839231408b74afdcbc272b9b
parent532a5b297cb27a23979cf2ea2dd2a00bb2e8cf58
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