]> Git Repo - J-u-boot.git/blobdiff - cmd/legacy_led.c
bootm: Drop arguments from do_bootm_states()
[J-u-boot.git] / cmd / legacy_led.c
index 7d40d8db58e0c4b412f187b66bbf0b093253909f..5256255f052dabdd477af3cc67c53b9b54049896 100644 (file)
@@ -85,7 +85,7 @@ void __weak __led_blink(led_id_t mask, int freq)
 {
 }
 
-int do_legacy_led(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int do_legacy_led(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 {
        int i, match = 0;
        enum led_cmd cmd;
@@ -129,7 +129,7 @@ int do_legacy_led(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                                if (argc != 4)
                                        return CMD_RET_USAGE;
 
-                               freq = simple_strtoul(argv[3], NULL, 10);
+                               freq = dectoul(argv[3], NULL);
                                __led_blink(led_commands[i].mask, freq);
                        }
                        /* Need to set only 1 led if led_name wasn't 'all' */
This page took 0.025538 seconds and 4 git commands to generate.