led: The gpio_led.c expects that state is from the enum..

u-boot is not consistent if state should 0|1 or of the enum, the
GPIO driver expects this to be one of the enum values so update
the caller.
This commit is contained in:
Holger Hans Peter Freyther 2012-07-13 14:30:46 +02:00
parent 6226b0bf0b
commit 1c8cfba14d
1 changed files with 2 additions and 2 deletions

View File

@ -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)