[PATCH] i2c: fix always-true condition in i2c_probe_chip()

Heiko Schocher hs at denx.de
Wed Mar 23 06:56:38 CET 2022


Hello Nikita,

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

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