Browse Source

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>
tags/v0.5.0-rc1
Antonio Borneo 14 years ago
parent
commit
402d3292bb
2 changed files with 1 additions and 4 deletions
  1. +0
    -3
      src/ecosboard.c
  2. +1
    -1
      src/flash/nor/drivers.c

+ 0
- 3
src/ecosboard.c View File

@@ -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>



+ 1
- 1
src/flash/nor/drivers.c View File

@@ -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…
Cancel
Save