MFLASH: review scope of functions
Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>__archive__
parent
a6307fed91
commit
5926b5a94f
|
@ -1302,7 +1302,7 @@ static const struct command_registration mflash_exec_command_handlers[] = {
|
||||||
COMMAND_REGISTRATION_DONE
|
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)
|
if (!mflash_bank)
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
|
|
|
@ -142,7 +142,6 @@ struct mflash_bank
|
||||||
};
|
};
|
||||||
|
|
||||||
int mflash_register_commands(struct command_context *cmd_ctx);
|
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 (0x200) /* 512Bytes = 2^9 */
|
||||||
#define MG_MFLASH_SECTOR_SIZE_MASK (0x200-1)
|
#define MG_MFLASH_SECTOR_SIZE_MASK (0x200-1)
|
||||||
|
|
Loading…
Reference in New Issue