summaryrefslogtreecommitdiff
path: root/src/flash/flash.h
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 09:46:21 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:13 -0800
commitdfecfd5fd471708ac15af08b52964e8f8da9f4be (patch)
treedf19af79ef4f26cb88e94657bc9db4aa604c7ac8 /src/flash/flash.h
parentaf949b2531d2a8863d077025db40cbb170d13a63 (diff)
downloadopenocd+libswd-dfecfd5fd471708ac15af08b52964e8f8da9f4be.tar.gz
openocd+libswd-dfecfd5fd471708ac15af08b52964e8f8da9f4be.tar.bz2
openocd+libswd-dfecfd5fd471708ac15af08b52964e8f8da9f4be.tar.xz
openocd+libswd-dfecfd5fd471708ac15af08b52964e8f8da9f4be.zip
image_t -> struct image
Remove misleading typedef and redundant suffix from struct image. Also removes the typedef from enum image_type, as it is used in image.h only.
Diffstat (limited to 'src/flash/flash.h')
-rw-r--r--src/flash/flash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/flash.h b/src/flash/flash.h
index 9cd59232..eeacc756 100644
--- a/src/flash/flash.h
+++ b/src/flash/flash.h
@@ -29,7 +29,7 @@
#include "target.h"
#include "log.h"
-struct image_s;
+struct image;
#define FLASH_MAX_ERROR_STR (128)
@@ -286,7 +286,7 @@ int flash_erase_address_range(struct target_s *target,
* @returns ERROR_OK if successful; otherwise, an error code.
*/
int flash_write(struct target_s *target,
- struct image_s *image, uint32_t *written, int erase);
+ struct image *image, uint32_t *written, int erase);
/**
* Forces targets to re-examine their erase/protection state.
* This routine must be called when the system may modify the status.