Commit 9166b776350d16460c7330bfb0a50154ea0a1903
Committed by
Wolfgang Denk
1 parent
0a45a6357b
cmd_i2c: Fix i2c help command output when CONFIG_I2C_MUX
When CONFIG_I2C_MUX was defined the output of 'help i2c' was not correct, eg: => help i2c i2c bus [muxtype:muxaddr:muxchannel] - add a new bus reached over muxes. speed [speed] - show or set I2C bus speed i2c dev [dev] - show or set current I2C bus ... It has been changed to: i2c speed [speed] - show or set I2C bus speed i2c bus [muxtype:muxaddr:muxchannel] - add a new bus reached over muxes i2c dev [dev] - show or set current I2C bus ... Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
common/cmd_i2c.c
... | ... | @@ -1301,10 +1301,10 @@ |
1301 | 1301 | U_BOOT_CMD( |
1302 | 1302 | i2c, 6, 1, do_i2c, |
1303 | 1303 | "I2C sub-system", |
1304 | + "speed [speed] - show or set I2C bus speed\n" | |
1304 | 1305 | #if defined(CONFIG_I2C_MUX) |
1305 | - "bus [muxtype:muxaddr:muxchannel] - add a new bus reached over muxes.\n" | |
1306 | + "i2c bus [muxtype:muxaddr:muxchannel] - add a new bus reached over muxes\n" | |
1306 | 1307 | #endif /* CONFIG_I2C_MUX */ |
1307 | - "speed [speed] - show or set I2C bus speed\n" | |
1308 | 1308 | #if defined(CONFIG_I2C_MULTI_BUS) |
1309 | 1309 | "i2c dev [dev] - show or set current I2C bus\n" |
1310 | 1310 | #endif /* CONFIG_I2C_MULTI_BUS */ |