summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@freyther.de>2013-02-07 23:41:02 +0000
committerTom Rini <trini@ti.com>2013-02-20 08:52:41 -0500
commit4f47aceb118b291831a603d7e6ca651d76bf88e0 (patch)
tree067665bfca6ef5d65872747bc4ad6d82c348e894
parent03414ac45e119496e2475aeacbb968bb67da24f8 (diff)
downloadu-boot-imx-4f47aceb118b291831a603d7e6ca651d76bf88e0.zip
u-boot-imx-4f47aceb118b291831a603d7e6ca651d76bf88e0.tar.gz
u-boot-imx-4f47aceb118b291831a603d7e6ca651d76bf88e0.tar.bz2
led: The gpio_led.c code expects that LED state is from the enum
u-boot is not consistent if state should be 0|1 or of the enum, the GPIO driver expects this to be one of the enum values. Update the caller. Signed-off-by: Holger Hans Peter Freyther <holger@freyther.de>
-rw-r--r--common/cmd_led.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_led.c b/common/cmd_led.c
index 7f5ab43..c725f95 100644
--- a/common/cmd_led.c
+++ b/common/cmd_led.c
@@ -110,13 +110,13 @@ int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
if (led_commands[i].on)
led_commands[i].on();
else
- __led_set(led_commands[i].mask, 1);
+ __led_set(led_commands[i].mask, STATUS_LED_ON);
break;
case LED_OFF:
if (led_commands[i].off)
led_commands[i].off();
else
- __led_set(led_commands[i].mask, 0);
+ __led_set(led_commands[i].mask, STATUS_LED_OFF);
break;
case LED_TOGGLE:
if (led_commands[i].toggle)