aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2021-07-01 11:44:51 +0200
committerMichal Simek <michal.simek@xilinx.com>2021-08-26 08:08:11 +0200
commita84d3b6c563445e9626d77f1504b707f054f77cf (patch)
tree772b760e12b41f27484bac2c096f910b8b89cb90
parent57b2a43607216b42b5f80451c9bf89e7214e9af9 (diff)
downloadu-boot-a84d3b6c563445e9626d77f1504b707f054f77cf.zip
u-boot-a84d3b6c563445e9626d77f1504b707f054f77cf.tar.gz
u-boot-a84d3b6c563445e9626d77f1504b707f054f77cf.tar.bz2
cmd: pwm: Remove additional pwm description
The first name is taken from command name that's why shouldn't be listed in help. And commands shouldn't be listed with <> which means value but value itself is command name. Also add description for commands to make it clear what it does. Before pwm pwm <invert> <pwm_dev_num> <channel> <polarity> pwm <config> <pwm_dev_num> <channel> <period_ns> <duty_ns> ... After: pwm invert <pwm_dev_num> <channel> <polarity> - invert polarity pwm config <pwm_dev_num> <channel> <period_ns> <duty_ns> - config PWM pwm enable <pwm_dev_num> <channel> - enable PWM output pwm disable <pwm_dev_num> <channel> - disable PWM output Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--cmd/pwm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd/pwm.c b/cmd/pwm.c
index 87d840a..7947e61 100644
--- a/cmd/pwm.c
+++ b/cmd/pwm.c
@@ -108,7 +108,8 @@ static int do_pwm(struct cmd_tbl *cmdtp, int flag, int argc,
U_BOOT_CMD(pwm, 6, 0, do_pwm,
"control pwm channels",
- "pwm <invert> <pwm_dev_num> <channel> <polarity>\n"
- "pwm <config> <pwm_dev_num> <channel> <period_ns> <duty_ns>\n"
- "pwm <enable/disable> <pwm_dev_num> <channel>\n"
+ "invert <pwm_dev_num> <channel> <polarity> - invert polarity\n"
+ "pwm config <pwm_dev_num> <channel> <period_ns> <duty_ns> - config PWM\n"
+ "pwm enable <pwm_dev_num> <channel> - enable PWM output\n"
+ "pwm disable <pwm_dev_num> <channel> - eisable PWM output\n"
"Note: All input values are in decimal");