TCL: review scope of functions
Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
c0b5ca6d17
commit
0c82bea44a
|
@ -97,8 +97,6 @@ struct flash_bank
|
||||||
|
|
||||||
/// Registers the 'flash' subsystem commands
|
/// Registers the 'flash' subsystem commands
|
||||||
int flash_register_commands(struct command_context *cmd_ctx);
|
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.
|
* Erases @a length bytes in the @a target flash, starting at @a addr.
|
||||||
|
|
|
@ -774,7 +774,7 @@ static const struct command_registration flash_exec_command_handlers[] = {
|
||||||
COMMAND_REGISTRATION_DONE
|
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())
|
if (!flash_bank_list())
|
||||||
return ERROR_OK;
|
return ERROR_OK;
|
||||||
|
|
Loading…
Reference in New Issue