summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2010-04-10 19:28:13 +0800
committerAntonio Borneo <borneo.antonio@gmail.com>2010-04-10 19:28:13 +0800
commit0c82bea44acf491164c96efd88c1a831fbf6ce67 (patch)
tree61aab9bd5347182d3be09d628a8863e1fefe06bf
parentc0b5ca6d17273aff849bc6546c7388562b751225 (diff)
downloadopenocd_libswd-0c82bea44acf491164c96efd88c1a831fbf6ce67.tar.gz
openocd_libswd-0c82bea44acf491164c96efd88c1a831fbf6ce67.tar.bz2
openocd_libswd-0c82bea44acf491164c96efd88c1a831fbf6ce67.tar.xz
openocd_libswd-0c82bea44acf491164c96efd88c1a831fbf6ce67.zip
TCL: review scope of functions
Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
-rw-r--r--src/flash/nor/core.h2
-rw-r--r--src/flash/nor/tcl.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/flash/nor/core.h b/src/flash/nor/core.h
index 98763b7b..68220afe 100644
--- a/src/flash/nor/core.h
+++ b/src/flash/nor/core.h
@@ -97,8 +97,6 @@ struct flash_bank
/// Registers the 'flash' subsystem commands
int flash_register_commands(struct command_context *cmd_ctx);
-/// Initializes the 'flash' subsystem drivers
-int flash_init_drivers(struct command_context *cmd_ctx);
/**
* Erases @a length bytes in the @a target flash, starting at @a addr.
diff --git a/src/flash/nor/tcl.c b/src/flash/nor/tcl.c
index fc7169f0..aed55c05 100644
--- a/src/flash/nor/tcl.c
+++ b/src/flash/nor/tcl.c
@@ -774,7 +774,7 @@ static const struct command_registration flash_exec_command_handlers[] = {
COMMAND_REGISTRATION_DONE
};
-int flash_init_drivers(struct command_context *cmd_ctx)
+static int flash_init_drivers(struct command_context *cmd_ctx)
{
if (!flash_bank_list())
return ERROR_OK;