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>__archive__
parent
61c0635991
commit
402d3292bb
|
@ -99,9 +99,6 @@ static bool writeLog = true;
|
||||||
|
|
||||||
char hwaddr[512];
|
char hwaddr[512];
|
||||||
|
|
||||||
|
|
||||||
extern struct flash_driver *flash_drivers[];
|
|
||||||
|
|
||||||
#ifdef CYGPKG_PROFILE_GPROF
|
#ifdef CYGPKG_PROFILE_GPROF
|
||||||
#include <cyg/profile/profile.h>
|
#include <cyg/profile/profile.h>
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ extern struct flash_driver faux_flash;
|
||||||
* The list of built-in flash drivers.
|
* The list of built-in flash drivers.
|
||||||
* @todo Make this dynamically extendable with loadable modules.
|
* @todo Make this dynamically extendable with loadable modules.
|
||||||
*/
|
*/
|
||||||
struct flash_driver *flash_drivers[] = {
|
static struct flash_driver *flash_drivers[] = {
|
||||||
&lpc2000_flash,
|
&lpc2000_flash,
|
||||||
&lpc288x_flash,
|
&lpc288x_flash,
|
||||||
&lpc2900_flash,
|
&lpc2900_flash,
|
||||||
|
|
Loading…
Reference in New Issue