summaryrefslogtreecommitdiff
path: root/src/flash/flash.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-17 13:07:36 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-19 13:39:41 -0800
commitff25e76bad7e57da4ebd363f1b35d4af04acaa67 (patch)
tree8f1fce0976f294941982b5e55d3b51e3924a4652 /src/flash/flash.h
parent870b8c04557f0b7441cc502debaf537984d77e2a (diff)
downloadopenocd_libswd-ff25e76bad7e57da4ebd363f1b35d4af04acaa67.tar.gz
openocd_libswd-ff25e76bad7e57da4ebd363f1b35d4af04acaa67.tar.bz2
openocd_libswd-ff25e76bad7e57da4ebd363f1b35d4af04acaa67.tar.xz
openocd_libswd-ff25e76bad7e57da4ebd363f1b35d4af04acaa67.zip
rename flash and nand command helpers
After adding support for referencing banks by name, renames the COMMAND_HELPERs appropriately: flash_command_get_bank_by_num -> flash_command_get_bank nand_command_get_device_by_num -> flash_command_get_device
Diffstat (limited to 'src/flash/flash.h')
-rw-r--r--src/flash/flash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/flash.h b/src/flash/flash.h
index fb88c353..1235a419 100644
--- a/src/flash/flash.h
+++ b/src/flash/flash.h
@@ -333,7 +333,7 @@ struct flash_bank *get_flash_bank_by_num(int num);
* @param bank On output, contians a pointer to the bank or NULL.
* @returns ERROR_OK on success, or an error indicating the problem.
*/
-COMMAND_HELPER(flash_command_get_bank_by_num, unsigned name_index,
+COMMAND_HELPER(flash_command_get_bank, unsigned name_index,
struct flash_bank **bank);
/**
* Returns the flash bank like get_flash_bank_by_num(), without probing.