]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_led.c
COMMON: MMC: Command to support EMMC booting and to resize EMMC boot partition
[karo-tx-uboot.git] / common / cmd_led.c
index 7f5ab43c7f5d92f4af1e799ae42e2ffcbe9f3786..84f79fae00698e2e70199090919b1981bafd6a1f 100644 (file)
@@ -110,13 +110,15 @@ 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)