]> git.dujemihanovic.xyz Git - u-boot.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)
commita84d3b6c563445e9626d77f1504b707f054f77cf
tree772b760e12b41f27484bac2c096f910b8b89cb90
parent57b2a43607216b42b5f80451c9bf89e7214e9af9
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