MFLASH: review scope of functions
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 10 Apr 2010 12:11:40 +0000 (20:11 +0800)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 10 Apr 2010 12:11:40 +0000 (20:11 +0800)
Add "static" qualifier to private functions.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
src/flash/mflash.c
src/flash/mflash.h

index 289fe5ebb6af0e8a8e0e891ead178bae85fe8d3f..d3078583488eaaa2c2fb82cd60152cf9bf9af74e 100644 (file)
@@ -1302,7 +1302,7 @@ static const struct command_registration mflash_exec_command_handlers[] = {
        COMMAND_REGISTRATION_DONE
 };
 
-int mflash_init_drivers(struct command_context *cmd_ctx)
+static int mflash_init_drivers(struct command_context *cmd_ctx)
 {
        if (!mflash_bank)
                return ERROR_OK;
index 358d25364187b05bd2c32872b74104c569427fa2..bb3cd05ba86c05d3b8ce4bb35f86995d733f9874 100644 (file)
@@ -142,7 +142,6 @@ struct mflash_bank
 };
 
 int mflash_register_commands(struct command_context *cmd_ctx);
-int mflash_init_drivers(struct command_context *cmd_ctx);
 
 #define MG_MFLASH_SECTOR_SIZE          (0x200)         /* 512Bytes = 2^9 */
 #define MG_MFLASH_SECTOR_SIZE_MASK     (0x200-1)