]> git.sur5r.net Git - openocd/blobdiff - src/flash/orion_nand.c
Eliminate MixedCaps symbol from public JTAG TAP API:
[openocd] / src / flash / orion_nand.c
index cf26568d03d2ff3673319bd5969bcf20ea997b02..f1208a634b1151d07f375b290156ad18b9d57c77 100644 (file)
@@ -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),
@@ -162,7 +161,7 @@ static int orion_nand_fast_block_write(struct nand_device_s *device, u8 *data, i
        buf_set_u32(reg_params[1].value, 0, 32, target_buf);
        buf_set_u32(reg_params[2].value, 0, 32, size);
 
-       retval = target->type->run_algorithm(target, 0, NULL, 3, reg_params,
+       retval = target_run_algorithm(target, 0, NULL, 3, reg_params,
                                        hw->copy_area->address,
                                        hw->copy_area->address + code_size - 4,
                                        1000, &algo);