diff mbox series

cmd: demo: Remove duplicated help message for list subcommand

Message ID e9adf8a33f3f44b56f4914cb70bf2dcf7530bda4.1597306339.git.michal.simek@xilinx.com
State Accepted
Commit 698383fe8ea3a755f93e9e9446a5560e040c6b56
Delegated to: Tom Rini
Headers show
Series cmd: demo: Remove duplicated help message for list subcommand | expand

Commit Message

Michal Simek Aug. 13, 2020, 8:12 a.m. UTC
There is no need to show demo list description twice when help demo is
performed. The patch removes duplicated entry.

Current state:
=> help demo
demo - Driver model (dm) demo operations

Usage:
demo list                     List available demo devices
demo hello <num> [<char>]     Say hello
demo light [<num>]            Set or get the lights
demo status <num>             Get demo device status
demo list                     List available demo devices

Fixes: a02af4aeece4 ("dm: demo: Add a simple GPIO demonstration")
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 cmd/demo.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Simon Glass Aug. 14, 2020, 12:54 p.m. UTC | #1
On Thu, 13 Aug 2020 at 02:12, Michal Simek <michal.simek@xilinx.com> wrote:
>
> There is no need to show demo list description twice when help demo is
> performed. The patch removes duplicated entry.
>
> Current state:
> => help demo
> demo - Driver model (dm) demo operations
>
> Usage:
> demo list                     List available demo devices
> demo hello <num> [<char>]     Say hello
> demo light [<num>]            Set or get the lights
> demo status <num>             Get demo device status
> demo list                     List available demo devices
>
> Fixes: a02af4aeece4 ("dm: demo: Add a simple GPIO demonstration")
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> ---
>
>  cmd/demo.c | 1 -
>  1 file changed, 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini Aug. 14, 2020, 7:51 p.m. UTC | #2
On Thu, Aug 13, 2020 at 10:12:21AM +0200, Michal Simek wrote:

> There is no need to show demo list description twice when help demo is
> performed. The patch removes duplicated entry.
> 
> Current state:
> => help demo
> demo - Driver model (dm) demo operations
> 
> Usage:
> demo list                     List available demo devices
> demo hello <num> [<char>]     Say hello
> demo light [<num>]            Set or get the lights
> demo status <num>             Get demo device status
> demo list                     List available demo devices
> 
> Fixes: a02af4aeece4 ("dm: demo: Add a simple GPIO demonstration")
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/cmd/demo.c b/cmd/demo.c
index f923533f794b..7310aa2907ad 100644
--- a/cmd/demo.c
+++ b/cmd/demo.c
@@ -130,5 +130,4 @@  U_BOOT_CMD(
 	"demo hello <num> [<char>]     Say hello\n"
 	"demo light [<num>]            Set or get the lights\n"
 	"demo status <num>             Get demo device status\n"
-	"demo list                     List available demo devices"
 );