]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/cmd_i2c.c
cmd_i2c: Fix i2c help command output when CONFIG_I2C_MUX
[people/ms/u-boot.git] / common / cmd_i2c.c
index 44acfe4f69a1758dcae56392d183967f22cf1ceb..b922b966afadd1937b1f01deefea23aa3104aa94 100644 (file)
@@ -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 */