summaryrefslogtreecommitdiff
path: root/common/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/flash.c')
-rw-r--r--common/flash.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/flash.c b/common/flash.c
index 6e3ee8f2b5..d32bbb6614 100644
--- a/common/flash.c
+++ b/common/flash.c
@@ -978,7 +978,7 @@ DECLARE_DEFERRED(flash_erase_deferred);
/* Console commands */
#ifdef CONFIG_CMD_FLASHINFO
-static int command_flash_info(int argc, char **argv)
+static int command_flash_info(int argc, const char **argv)
{
int i, flags;
@@ -1049,7 +1049,7 @@ DECLARE_SAFE_CONSOLE_COMMAND(flashinfo, command_flash_info, NULL,
#endif /* CONFIG_CMD_FLASHINFO */
#ifdef CONFIG_CMD_FLASH
-static int command_flash_erase(int argc, char **argv)
+static int command_flash_erase(int argc, const char **argv)
{
int offset = -1;
int size = -1;
@@ -1068,7 +1068,7 @@ static int command_flash_erase(int argc, char **argv)
DECLARE_CONSOLE_COMMAND(flasherase, command_flash_erase, "offset size",
"Erase flash");
-static int command_flash_write(int argc, char **argv)
+static int command_flash_write(int argc, const char **argv)
{
int offset = -1;
int size = -1;
@@ -1108,7 +1108,7 @@ static int command_flash_write(int argc, char **argv)
DECLARE_CONSOLE_COMMAND(flashwrite, command_flash_write, "offset size",
"Write pattern to flash");
-static int command_flash_read(int argc, char **argv)
+static int command_flash_read(int argc, const char **argv)
{
int offset = -1;
int size = 256;
@@ -1157,7 +1157,7 @@ DECLARE_CONSOLE_COMMAND(flashread, command_flash_read, "offset [size]",
#endif
#ifdef CONFIG_CMD_FLASH_WP
-static int command_flash_wp(int argc, char **argv)
+static int command_flash_wp(int argc, const char **argv)
{
int val;