mirror of
git://git.code.sf.net/p/openocd/code
synced 2025-07-20 03:54:05 +10:00
PLD: 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
ec1c90e3cd
commit
4678108034
@ -206,7 +206,8 @@ static const struct command_registration pld_exec_command_handlers[] = {
|
||||
},
|
||||
COMMAND_REGISTRATION_DONE
|
||||
};
|
||||
int pld_init(struct command_context *cmd_ctx)
|
||||
|
||||
static int pld_init(struct command_context *cmd_ctx)
|
||||
{
|
||||
if (!pld_devices)
|
||||
return ERROR_OK;
|
||||
|
@ -46,8 +46,6 @@ struct pld_device
|
||||
|
||||
int pld_register_commands(struct command_context *cmd_ctx);
|
||||
|
||||
int pld_init(struct command_context *cmd_ctx);
|
||||
|
||||
struct pld_device *get_pld_device_by_num(int num);
|
||||
|
||||
#define ERROR_PLD_DEVICE_INVALID (-1000)
|
||||
|
Loading…
Reference in New Issue
Block a user