]> git.sur5r.net Git - u-boot/commit
i2c: Correct command return values
authorSimon Glass <sjg@chromium.org>
Tue, 29 Dec 2015 12:22:50 +0000 (05:22 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 21 Jan 2016 02:06:22 +0000 (19:06 -0700)
commit4fbd258e69373a60cdf24c9a64065b486f8748c9
tree5067e1b3a84ce4696d0e24840bb50222c7266765
parent4a1db6d8ab4d5e4565bda079710a028ada12ddbe
i2c: Correct command return values

We should not return a -ve error code from command functions. Instead,
return CMD_RET_FAILURE. This avoids the "exit not allowed from main input
shell" error messages from the hush shell.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Heiko Schocher <hs@denx.de>
common/cmd_i2c.c