commit | 4fbd258e69373a60cdf24c9a64065b486f8748c9 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Dec 29 05:22:50 2015 -0700 |
committer | Simon Glass <sjg@chromium.org> | Wed Jan 20 19:06:22 2016 -0700 |
tree | 5067e1b3a84ce4696d0e24840bb50222c7266765 | |
parent | 4a1db6d8ab4d5e4565bda079710a028ada12ddbe [diff] |
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>