summaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2010-04-10 22:14:34 +0800
committerAntonio Borneo <borneo.antonio@gmail.com>2010-04-10 22:14:34 +0800
commit4809dbb2d7aa3b949a555876aad945d3916a8c87 (patch)
tree369e8cad91152eb821271a72dbd4e02250e46609 /src/flash
parent11fd673f0c315346ef065289b164da58dd1fd4c6 (diff)
downloadopenocd+libswd-4809dbb2d7aa3b949a555876aad945d3916a8c87.tar.gz
openocd+libswd-4809dbb2d7aa3b949a555876aad945d3916a8c87.tar.bz2
openocd+libswd-4809dbb2d7aa3b949a555876aad945d3916a8c87.tar.xz
openocd+libswd-4809dbb2d7aa3b949a555876aad945d3916a8c87.zip
NOR/CFI: review scope of functions
Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/flash')
-rw-r--r--src/flash/nor/cfi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flash/nor/cfi.c b/src/flash/nor/cfi.c
index 5f7ed1e2..4dad7b6f 100644
--- a/src/flash/nor/cfi.c
+++ b/src/flash/nor/cfi.c
@@ -244,7 +244,7 @@ static void cfi_intel_clear_status_register(struct flash_bank *bank)
cfi_send_command(bank, 0x50, flash_address(bank, 0, 0x0));
}
-uint8_t cfi_intel_wait_status_busy(struct flash_bank *bank, int timeout)
+static uint8_t cfi_intel_wait_status_busy(struct flash_bank *bank, int timeout)
{
uint8_t status;
@@ -285,7 +285,7 @@ uint8_t cfi_intel_wait_status_busy(struct flash_bank *bank, int timeout)
return status;
}
-int cfi_spansion_wait_status_busy(struct flash_bank *bank, int timeout)
+static int cfi_spansion_wait_status_busy(struct flash_bank *bank, int timeout)
{
uint8_t status, oldstatus;
struct cfi_flash_bank *cfi_info = bank->driver_priv;
@@ -1810,7 +1810,7 @@ static int cfi_write_words(struct flash_bank *bank, uint8_t *word, uint32_t word
return ERROR_FLASH_OPERATION_FAILED;
}
-int cfi_write(struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count)
+static int cfi_write(struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count)
{
struct cfi_flash_bank *cfi_info = bank->driver_priv;
struct target *target = bank->target;