[PATCH] ti: i2c: fix probe_chip() return value

Heiko Schocher hs at denx.de
Wed Feb 16 06:29:09 CET 2022


Hello Nikita,

On 15.02.22 19:10, Nikita Yushchenko wrote:
> 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 at cogentembedded.com>
> ---
>  drivers/i2c/omap24xx_i2c.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Good catch!

Reviewed-by: Heiko Schocher <hs at denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list