Skip to content
Snippets Groups Projects
Commit d604cda3 authored by Joel A Fernandes's avatar Joel A Fernandes Committed by Albert ARIBAUD
Browse files

led: Fixed setting of STATUS_LED_BIT1 when led_name is 'all'

Fix for only one led getting set or reset when the led_name is 'all'

Previous discussion:
http://lists.denx.de/pipermail/u-boot/2011-May/093068.html



Changes since v1:
Fixed checkpatch if statement error noticed by Sergei.

Signed-off-by: default avatarJoel A Fernandes <agnel.joel@gmail.com>
Signed-off-by: default avatarJason Kridner <jkridner@beagleboard.org>
Cc: Sergei Shtylyov <sshtylyov@mvista.com>
Signed-off-by: default avatarSandeep Paulraj <s-paulraj@ti.com>
parent 4086b51c
No related branches found
No related tags found
No related merge requests found
...@@ -108,7 +108,9 @@ int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) ...@@ -108,7 +108,9 @@ int do_led (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
} else { } else {
__led_set(led_commands[i].mask, state); __led_set(led_commands[i].mask, state);
} }
break; /* Need to set only 1 led if led_name wasn't 'all' */
if (strcmp("all", argv[1]) != 0)
break;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment