]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/bf537-stamp/cmd_bf537led.c
Blackfin: import gpio/portmux layer from Linux
[karo-tx-uboot.git] / board / bf537-stamp / cmd_bf537led.c
index e77bb0cb19a32967590cb91a13ffc586218b6db4..7d8f3eadffd19ea227ed46465de719dd869e6ece 100644 (file)
@@ -25,7 +25,7 @@
 #include <config.h>
 #include <command.h>
 #include <asm/blackfin.h>
-#include <asm-blackfin/string.h>
+#include <asm/string.h>
 #ifdef CONFIG_BF537_STAMP_LEDCMD
 
 /* Define the command usage in a reusable way */
@@ -33,7 +33,7 @@
        "led <number> <action>\n" \
        "    <number>  - Index (0-5) of LED to change, or \"all\"\n" \
        "    <action>  - Must be one of:\n" \
-       "               on off toggle\n"
+       "               on off toggle"
 
 /* Number of LEDs supported by the board */
 #define NUMBER_LEDS     6
@@ -80,7 +80,7 @@ int atoi(char *string)
        return retval;
 }
 
-int do_bf537led(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
+int do_bf537led(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
 {
        int led_mask = 0;
        int led_current_state = 0;
@@ -191,7 +191,7 @@ void set_led_state(int index, int state)
 /* Display usage information */
 void show_cmd_usage()
 {
-       printf("Usage:\n%s", USAGE_LONG);
+       printf("Usage:\n%s\n", USAGE_LONG);
 }
 
 /* Register information for u-boot to find this command */