]> git.sur5r.net Git - u-boot/blobdiff - board/tqc/tqm5200/cmd_tb5200.c
Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx
[u-boot] / board / tqc / tqm5200 / cmd_tb5200.c
index b9c9e7e194e3dfe468a2526397e0523798eb21c3..876258d8f7d7409b2d0c0d37ca15bb050abe196f 100644 (file)
@@ -2,23 +2,7 @@
  * (C) Copyright 2005 - 2006
  * Martin Krause, TQ-Systems GmbH, martin.krause@tqs.de.
  *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 
 /*
@@ -42,7 +26,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 +56,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");
@@ -91,13 +75,13 @@ int cmd_backlight(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 U_BOOT_CMD(
        led ,   2,      1,      cmd_led,
        "switch status LED on or off",
-       "on/off\n"
+       "on/off"
 );
 
 U_BOOT_CMD(
        backlight ,     2,      1,      cmd_backlight,
        "switch backlight on or off",
-       "on/off\n"
+       "on/off"
        );
 
 #endif /* CONFIG_STK52XX */