summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorPeter Tyser <ptyser@xes-inc.com>2009-04-18 22:34:06 -0500
committerWolfgang Denk <wd@denx.de>2009-06-12 20:39:46 +0200
commit9166b776350d16460c7330bfb0a50154ea0a1903 (patch)
tree6666a63ddd5a67128f7b1e89d6d5749eea9ec6ba /common
parent0a45a6357b02e5ce5bf899a60db09def6a129fee (diff)
downloadu-boot-imx-9166b776350d16460c7330bfb0a50154ea0a1903.zip
u-boot-imx-9166b776350d16460c7330bfb0a50154ea0a1903.tar.gz
u-boot-imx-9166b776350d16460c7330bfb0a50154ea0a1903.tar.bz2
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>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_i2c.c b/common/cmd_i2c.c
index 44acfe4..b922b96 100644
--- a/common/cmd_i2c.c
+++ b/common/cmd_i2c.c
@@ -1301,10 +1301,10 @@ int do_i2c(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
U_BOOT_CMD(
i2c, 6, 1, do_i2c,
"I2C sub-system",
+ "speed [speed] - show or set I2C bus speed\n"
#if defined(CONFIG_I2C_MUX)
- "bus [muxtype:muxaddr:muxchannel] - add a new bus reached over muxes.\n"
+ "i2c bus [muxtype:muxaddr:muxchannel] - add a new bus reached over muxes\n"
#endif /* CONFIG_I2C_MUX */
- "speed [speed] - show or set I2C bus speed\n"
#if defined(CONFIG_I2C_MULTI_BUS)
"i2c dev [dev] - show or set current I2C bus\n"
#endif /* CONFIG_I2C_MULTI_BUS */