]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - common/cmd_otp.c
Make sure that argv[] argument pointers are not modified.
[karo-tx-uboot.git] / common / cmd_otp.c
index 65232903b22049d38be57a65d9156578751e042c..a8c73b5a8661584ff364429fc2d043ad69f75a61 100644 (file)
@@ -80,7 +80,7 @@ static void set_otp_timing(bool write)
        bfrom_OtpCommand(OTP_INIT, write ? timing : timing & ~(-1 << 15));
 }
 
-int do_otp(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+int do_otp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
        uint32_t ret, base_flags;
        bool prompt_user, force_read;
@@ -225,7 +225,7 @@ int do_otp(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 }
 
 U_BOOT_CMD(otp, 7, 0, do_otp,
-       "One-Time-Programmable sub-system\n",
+       "One-Time-Programmable sub-system",
        "read <addr> <page> [count] [half]\n"
        " - read 'count' half-pages starting at 'page' (offset 'half') to 'addr'\n"
        "otp dump <addr> <page> [count] [half]\n"
@@ -233,4 +233,5 @@ U_BOOT_CMD(otp, 7, 0, do_otp,
        "otp write [--force] <addr> <page> [count] [half]\n"
        " - write 'count' half-pages starting at 'page' (offset 'half') from 'addr'\n"
        "otp lock <page> <count>\n"
-       " - lock 'count' pages starting at 'page'\n");
+       " - lock 'count' pages starting at 'page'"
+);