Skip to content
Snippets Groups Projects
  • Michal Simek's avatar
    a84d3b6c
    cmd: pwm: Remove additional pwm description · a84d3b6c
    Michal Simek authored
    
    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: default avatarMichal Simek <michal.simek@xilinx.com>
    Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
    a84d3b6c
    History
    cmd: pwm: Remove additional pwm description
    Michal Simek authored
    
    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: default avatarMichal Simek <michal.simek@xilinx.com>
    Reviewed-by: default avatarSimon Glass <sjg@chromium.org>