cmd/led: check subcommand "list" instead "l"
authorHeiko Schocher <hs@denx.de>
Mon, 27 May 2019 06:14:16 +0000 (08:14 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 5 Jun 2019 16:14:02 +0000 (12:14 -0400)
commitea41b15617fa6869a6bb628dad8f972db4d77139
tree2414554a9caff9998089915eefc4c4e9fce044f3
parentc5646270d1783982fc76eff831e5f3e63cb626cd
cmd/led: check subcommand "list" instead "l"

current implementation for checking if "led list"
command is called checks only if "l" is passed to the
led command. This prevents switching leds with name
which starts also with a "l". So check for passing
"list".

While at it, also fix a typo in led command usage.

Signed-off-by: Heiko Schocher <hs@denx.de>
cmd/led.c