]> git.sur5r.net Git - u-boot/commit
i2c: meson: fix return codes on error
authorBeniamino Galvani <b.galvani@gmail.com>
Sun, 26 Nov 2017 16:40:56 +0000 (17:40 +0100)
committerHeiko Schocher <hs@denx.de>
Thu, 7 Dec 2017 08:28:31 +0000 (09:28 +0100)
commit989bb924c464f08ddac9c8ccb4bf6babbb9083f3
treef993fee3faa0790b6abde41ecf25746cff7940a2
parent8c47ab6b3bdc696584d081d63daa2575db24cbfa
i2c: meson: fix return codes on error

Change meson_i2c_xfer_msg() to return -EREMOTEIO in case of NACK, as
done by other drivers. Also, don't change the return error in
meson_i2c_xfer().

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/meson_i2c.c