]> git.ipfire.org Git - thirdparty/u-boot.git/commit
i2c: imx_lpi2c: Fix error detection
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 21 Oct 2025 16:08:29 +0000 (17:08 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 4 Dec 2025 15:38:17 +0000 (09:38 -0600)
commit40ad377c1619eb9b83d088a96f40b86a907c8c19
tree7f9465542735f9d79b858974b4c391814f4e5d4f
parenteb13583b9de27005703ab085d5ef45fcdbb1d4fb
i2c: imx_lpi2c: Fix error detection

Testing an unisgned ivariable to be <= 0 will only detect the
case when it is 0. So correct this error test to a working version that
will behave as expected.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-by: Heiko Schocher <hs@nabladev.com>
drivers/i2c/imx_lpi2c.c