]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/tqc/tqm5200/cmd_tb5200.c
Make sure that argv[] argument pointers are not modified.
[karo-tx-uboot.git] / board / tqc / tqm5200 / cmd_tb5200.c
index 578e716e7a4bd783f75ac4df4c8bd62090d3f8e2..79c1b980a2bfe9a9dbd1476a26389a4e1b621524 100644 (file)
@@ -42,7 +42,7 @@ static void led_init(void)
        gpt->gpt4.emsr |=  0x00000024;
 }
 
-int cmd_led(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+int cmd_led(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
        struct mpc5xxx_gpt_0_7 *gpt = (struct mpc5xxx_gpt_0_7 *)MPC5XXX_GPT;
 
@@ -72,7 +72,7 @@ static void sm501_backlight (unsigned int state)
                        ~((1 << 26) | (1 << 27));
 }
 
-int cmd_backlight(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+int cmd_backlight(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
        if (strcmp (argv[1], "on") == 0) {
                debug ("switch backlight on\n");