From: Michal Simek Date: Thu, 1 Jul 2021 09:44:51 +0000 (+0200) Subject: cmd: pwm: Remove additional pwm description X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=a84d3b6c563445e9626d77f1504b707f054f77cf;p=u-boot.git 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 pwm ... After: pwm invert - invert polarity pwm config - config PWM pwm enable - enable PWM output pwm disable - disable PWM output Signed-off-by: Michal Simek Reviewed-by: Simon Glass --- diff --git a/cmd/pwm.c b/cmd/pwm.c index 87d840a2b9..7947e61aee 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 \n" - "pwm \n" - "pwm \n" + "invert - invert polarity\n" + "pwm config - config PWM\n" + "pwm enable - enable PWM output\n" + "pwm disable - eisable PWM output\n" "Note: All input values are in decimal");