]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: pwm: Remove additional pwm description
authorMichal Simek <michal.simek@xilinx.com>
Thu, 1 Jul 2021 09:44:51 +0000 (11:44 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 26 Aug 2021 06:08:11 +0000 (08:08 +0200)
commit8fcd62a9a22a2a9f885bfb882300a4856647eed0
tree772b760e12b41f27484bac2c096f910b8b89cb90
parent22f95fce347e470c7056595129b8a69953de5c58
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>
cmd/pwm.c