commit | 63f578523bd4e473be5423f867e4f2b2595ddf68 | [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 | 547cb34694019f2ab7f838d81f9c95154574d2a7 [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>