From: Antonio Borneo Date: Sat, 10 Apr 2010 12:11:40 +0000 (+0800) Subject: MFLASH: review scope of functions X-Git-Tag: v0.5.0-rc1~764 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5926b5a94fd4e29e0e020c2f87b542fd51bd5d6f;p=openocd MFLASH: review scope of functions Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo --- diff --git a/src/flash/mflash.c b/src/flash/mflash.c index 289fe5eb..d3078583 100644 --- a/src/flash/mflash.c +++ b/src/flash/mflash.c @@ -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; diff --git a/src/flash/mflash.h b/src/flash/mflash.h index 358d2536..bb3cd05b 100644 --- a/src/flash/mflash.h +++ b/src/flash/mflash.h @@ -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)