diff options
author | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2013-03-08 21:13:42 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2013-03-15 15:56:35 +0000 |
commit | a7e3418258f79d6e0081b8e6d01d8f4268629ded (patch) | |
tree | cf537da87d4b0eafd85d321c6432d434c79c50a4 /src/target | |
parent | 4315142ea0d7035fe117b9e344beaf98c91ee35c (diff) |
target: Retire target_bulk_write_memory()
The only caller was arm_nandwrite(). Replace that call with
target_write_buffer() instead, which in turn may end up calling the same
bulk_write_memory target API function.
Change-Id: If34c7474df5cf14af3b732fb4774816818f28e79
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/1214
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/target.c | 6 | ||||
-rw-r--r-- | src/target/target.h | 10 |
2 files changed, 0 insertions, 16 deletions
diff --git a/src/target/target.c b/src/target/target.c index 04e375b8..ed1a2cc4 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -970,12 +970,6 @@ int target_write_phys_memory(struct target *target, return target->type->write_phys_memory(target, address, size, count, buffer); } -int target_bulk_write_memory(struct target *target, - uint32_t address, uint32_t count, const uint8_t *buffer) -{ - return target->type->bulk_write_memory(target, address, count, buffer); -} - static int target_bulk_write_memory_default(struct target *target, uint32_t address, uint32_t count, const uint8_t *buffer) { diff --git a/src/target/target.h b/src/target/target.h index 3baafbe7..e6b931dd 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -485,16 +485,6 @@ int target_write_memory(struct target *target, int target_write_phys_memory(struct target *target, uint32_t address, uint32_t size, uint32_t count, const uint8_t *buffer); -/** - * Write @a count items of 4 bytes to the memory of @a target at - * the @a address given. Because it operates only on whole words, - * this should be faster than target_write_memory(). - * - * This routine is wrapper for target->type->bulk_write_memory. - */ -int target_bulk_write_memory(struct target *target, - uint32_t address, uint32_t count, const uint8_t *buffer); - /* * Write to target memory using the virtual address. * |