提交 af73034c 编写于 作者: O Otavio Salvador 提交者: Stefano Babic

led: Use STATUS_LED_ON and STATUS_LED_OFF when calling __led_set

This fixes the gpio_led driver which needs to compare againt a
STATUS_LED_ON to enable a led.
Signed-off-by: NOtavio Salvador <otavio@ossystems.com.br>
上级 920178d3
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册