mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
i2c: fix command usage help
Portions of this work were supported by funding from the CE Linux Forum. Signed-off-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
3fbeeea633
commit
4444b221f2
1 changed files with 3 additions and 0 deletions
|
|
@ -1288,6 +1288,9 @@ static int do_i2c(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
|
|||
{
|
||||
cmd_tbl_t *c;
|
||||
|
||||
if (argc < 2)
|
||||
return cmd_usage(cmdtp);
|
||||
|
||||
/* Strip off leading 'i2c' command argument */
|
||||
argc--;
|
||||
argv++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue