diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-31 09:39:04 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-31 09:39:04 +0000 |
commit | 11edf227768f41b2a96c0d26a871f9e5f89d259a (patch) | |
tree | 8f020bee79c5278187470e7958988f23188d8cc1 /src/flash | |
parent | 9cb3af610a1d7cc2d8c1433f54077938d0268a8f (diff) | |
download | riscv-openocd-11edf227768f41b2a96c0d26a871f9e5f89d259a.zip riscv-openocd-11edf227768f41b2a96c0d26a871f9e5f89d259a.tar.gz riscv-openocd-11edf227768f41b2a96c0d26a871f9e5f89d259a.tar.bz2 |
Add target_bulk_write_memory wrapper:
- replaces all calls to target->type->bulk_write_memory.
- add documentation in target_s to warn not to invoke callback directly.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1963 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/flash')
-rw-r--r-- | src/flash/orion_nand.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/flash/orion_nand.c b/src/flash/orion_nand.c index 5ec1c25..f1208a6 100644 --- a/src/flash/orion_nand.c +++ b/src/flash/orion_nand.c @@ -140,8 +140,7 @@ static int orion_nand_fast_block_write(struct nand_device_s *device, u8 *data, i /* copy data to target's memory */ target_buf = hw->copy_area->address + code_size; - retval = target->type->bulk_write_memory(target, target_buf, - size/4, data); + retval = target_bulk_write_memory(target, target_buf, size/4, data); if (retval == ERROR_OK && size & 3) { retval = target_write_memory(target, target_buf + (size & ~3), |