mirror of
git://git.code.sf.net/p/openocd/code
synced 2025-07-23 22:58:57 +10:00
NOR/DRIVERS: review scope of functions
Add "static" qualifier to private functions. Remove unused "extern" in src/ecosboard.c Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
61c0635991
commit
402d3292bb
@ -99,9 +99,6 @@ static bool writeLog = true;
|
||||
|
||||
char hwaddr[512];
|
||||
|
||||
|
||||
extern struct flash_driver *flash_drivers[];
|
||||
|
||||
#ifdef CYGPKG_PROFILE_GPROF
|
||||
#include <cyg/profile/profile.h>
|
||||
|
||||
|
@ -44,7 +44,7 @@ extern struct flash_driver faux_flash;
|
||||
* The list of built-in flash drivers.
|
||||
* @todo Make this dynamically extendable with loadable modules.
|
||||
*/
|
||||
struct flash_driver *flash_drivers[] = {
|
||||
static struct flash_driver *flash_drivers[] = {
|
||||
&lpc2000_flash,
|
||||
&lpc288x_flash,
|
||||
&lpc2900_flash,
|
||||
|
Loading…
Reference in New Issue
Block a user