]> git.dujemihanovic.xyz Git - u-boot.git/commit
ti: i2c: fix probe_chip() return value
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>
Tue, 15 Feb 2022 18:10:09 +0000 (21:10 +0300)
committerTom Rini <trini@konsulko.com>
Mon, 21 Feb 2022 13:39:52 +0000 (08:39 -0500)
commita064e0c75fdf63c546a5a0885fa0c58bb1643dac
tree2763f5af2277548fef0077f7be3a48b87d79b036
parent829b41171b181e083fc984b72bb8acb31c1fb952
ti: i2c: fix probe_chip() return value

Per documentation, dm_i2c_ops.probe_chip() shall return -EREMOTEIO if
probe fails.

Currently, omap_i2c_probe_chip() returns 1 instead. Fix that.

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