aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/cfi.c
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2020-01-05 22:33:29 +0100
committerTomas Vanek <vanekt@fbl.cz>2020-01-16 12:26:16 +0000
commit76de1c8de104496f26a1cd084b755008349fa064 (patch)
tree5a31f3267a87278a7fc85b0d58a0605b81ea4361 /src/flash/nor/cfi.c
parent3192717ae910d387476b3a7980c325ceb0d2f733 (diff)
downloadriscv-openocd-76de1c8de104496f26a1cd084b755008349fa064.zip
riscv-openocd-76de1c8de104496f26a1cd084b755008349fa064.tar.gz
riscv-openocd-76de1c8de104496f26a1cd084b755008349fa064.tar.bz2
flash/nor: Rename get_cfi_info() to cfi_get_info()
This is a preparatory change, align the function name with the rest of the API, no functional change. Change-Id: Ib967520f027b03eb1792b36ede52335df8e23941 Signed-off-by: Marek Vasut <marek.vasut@gmail.com> Reviewed-on: http://openocd.zylin.com/5390 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'src/flash/nor/cfi.c')
-rw-r--r--src/flash/nor/cfi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/nor/cfi.c b/src/flash/nor/cfi.c
index 0437930..19c63f8 100644
--- a/src/flash/nor/cfi.c
+++ b/src/flash/nor/cfi.c
@@ -3023,7 +3023,7 @@ static int cfi_protect_check(struct flash_bank *bank)
return ERROR_OK;
}
-static int get_cfi_info(struct flash_bank *bank, char *buf, int buf_size)
+static int cfi_get_info(struct flash_bank *bank, char *buf, int buf_size)
{
int printed;
struct cfi_flash_bank *cfi_info = bank->driver_priv;
@@ -3134,6 +3134,6 @@ const struct flash_driver cfi_flash = {
/* FIXME: access flash at bus_width size */
.erase_check = default_flash_blank_check,
.protect_check = cfi_protect_check,
- .info = get_cfi_info,
+ .info = cfi_get_info,
.free_driver_priv = default_flash_free_driver_priv,
};