summaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 03:08:29 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:04 -0800
commit9f212b01be20da43ba534ad33b20419779c89335 (patch)
tree2c7fee0d42eb27047ba365fb603c663399566b94 /src/flash
parentf59ec2043b840a4534fdd61502de59e2571988d5 (diff)
downloadopenocd_libswd-9f212b01be20da43ba534ad33b20419779c89335.tar.gz
openocd_libswd-9f212b01be20da43ba534ad33b20419779c89335.tar.bz2
openocd_libswd-9f212b01be20da43ba534ad33b20419779c89335.tar.xz
openocd_libswd-9f212b01be20da43ba534ad33b20419779c89335.zip
fileio_t -> struct fileio
Remove useless structure typedef.
Diffstat (limited to 'src/flash')
-rw-r--r--src/flash/flash.c2
-rw-r--r--src/flash/lpc2900.c2
-rw-r--r--src/flash/mflash.c4
-rw-r--r--src/flash/nand.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/src/flash/flash.c b/src/flash/flash.c
index f3f0086a..2abd8c43 100644
--- a/src/flash/flash.c
+++ b/src/flash/flash.c
@@ -812,7 +812,7 @@ COMMAND_HANDLER(handle_flash_write_bank_command)
uint32_t offset;
uint8_t *buffer;
uint32_t buf_cnt;
- fileio_t fileio;
+ struct fileio fileio;
if (argc != 3)
return ERROR_COMMAND_SYNTAX_ERROR;
diff --git a/src/flash/lpc2900.c b/src/flash/lpc2900.c
index 953a62a1..83593792 100644
--- a/src/flash/lpc2900.c
+++ b/src/flash/lpc2900.c
@@ -622,7 +622,7 @@ COMMAND_HANDLER(lpc2900_handle_read_custom_command)
target_write_u32( target, FCTR, FCTR_FS_CS | FCTR_FS_WEB );
/* Try and open the file */
- fileio_t fileio;
+ struct fileio fileio;
const char *filename = args[1];
int ret = fileio_open( &fileio, filename, FILEIO_WRITE, FILEIO_BINARY );
if( ret != ERROR_OK )
diff --git a/src/flash/mflash.c b/src/flash/mflash.c
index 5a9b7c35..54578da3 100644
--- a/src/flash/mflash.c
+++ b/src/flash/mflash.c
@@ -706,7 +706,7 @@ COMMAND_HANDLER(mg_write_cmd)
{
uint32_t address, buf_cnt, cnt, res, i;
uint8_t *buffer;
- fileio_t fileio;
+ struct fileio fileio;
int ret;
if (argc != 3) {
@@ -770,7 +770,7 @@ COMMAND_HANDLER(mg_dump_cmd)
{
uint32_t address, size_written, size, cnt, res, i;
uint8_t *buffer;
- fileio_t fileio;
+ struct fileio fileio;
int ret;
if (argc != 4) {
diff --git a/src/flash/nand.c b/src/flash/nand.c
index 26eb63ad..44207a82 100644
--- a/src/flash/nand.c
+++ b/src/flash/nand.c
@@ -1292,7 +1292,7 @@ COMMAND_HANDLER(handle_nand_write_command)
uint32_t buf_cnt;
enum oob_formats oob_format = NAND_OOB_NONE;
- fileio_t fileio;
+ struct fileio fileio;
if (argc < 3)
@@ -1469,7 +1469,7 @@ COMMAND_HANDLER(handle_nand_dump_command)
return ERROR_OK;
}
- fileio_t fileio;
+ struct fileio fileio;
uint8_t *page = NULL;
uint32_t page_size = 0;