pld: make get_pld_device_by_num() static

The function is not referenced outside the file.
Make it static.

Change-Id: I5f2a2c70085b9158df8806432bb9ed09bb256ab5
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8546
Tested-by: jenkins
This commit is contained in:
Antonio Borneo 2024-11-09 18:54:14 +01:00
parent 4da8f6d27a
commit a34d4b8cb4
2 changed files with 1 additions and 2 deletions

View File

@ -28,7 +28,7 @@ static struct pld_driver *pld_drivers[] = {
static struct pld_device *pld_devices;
struct pld_device *get_pld_device_by_num(int num)
static struct pld_device *get_pld_device_by_num(int num)
{
struct pld_device *p;
int i = 0;

View File

@ -54,7 +54,6 @@ struct pld_device {
int pld_register_commands(struct command_context *cmd_ctx);
struct pld_device *get_pld_device_by_num(int num);
struct pld_device *get_pld_device_by_name(const char *name);
struct pld_device *get_pld_device_by_name_or_numstr(const char *str);