summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 07:32:19 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:06 -0800
commit1f328f2885f370aa9f79d2ed08515821bc8d856a (patch)
treee0cde7f87cc3d6887438ff1fadfd09572c4bd119 /src
parent3be0edbc5e5b121caee3ebdf987f5e9c47d4257e (diff)
downloadopenocd+libswd-1f328f2885f370aa9f79d2ed08515821bc8d856a.tar.gz
openocd+libswd-1f328f2885f370aa9f79d2ed08515821bc8d856a.tar.bz2
openocd+libswd-1f328f2885f370aa9f79d2ed08515821bc8d856a.tar.xz
openocd+libswd-1f328f2885f370aa9f79d2ed08515821bc8d856a.zip
cfi_intel_pri_ext_t -> struct cfi_intel_pri_ext
Remove misleading typedef and redundant suffix from struct cfi_intel_pri_ext.
Diffstat (limited to 'src')
-rw-r--r--src/flash/cfi.c8
-rw-r--r--src/flash/cfi.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/flash/cfi.c b/src/flash/cfi.c
index a50a3499..39eb16c7 100644
--- a/src/flash/cfi.c
+++ b/src/flash/cfi.c
@@ -316,7 +316,7 @@ static int cfi_read_intel_pri_ext(flash_bank_t *bank)
{
int retval;
struct cfi_flash_bank *cfi_info = bank->driver_priv;
- cfi_intel_pri_ext_t *pri_ext = malloc(sizeof(cfi_intel_pri_ext_t));
+ struct cfi_intel_pri_ext *pri_ext = malloc(sizeof(struct cfi_intel_pri_ext));
target_t *target = bank->target;
uint8_t command[8];
@@ -563,7 +563,7 @@ static int cfi_intel_info(struct flash_bank_s *bank, char *buf, int buf_size)
{
int printed;
struct cfi_flash_bank *cfi_info = bank->driver_priv;
- cfi_intel_pri_ext_t *pri_ext = cfi_info->pri_ext;
+ struct cfi_intel_pri_ext *pri_ext = cfi_info->pri_ext;
printed = snprintf(buf, buf_size, "\nintel primary algorithm extend information:\n");
buf += printed;
@@ -801,7 +801,7 @@ static int cfi_intel_protect(struct flash_bank_s *bank, int set, int first, int
{
int retval;
struct cfi_flash_bank *cfi_info = bank->driver_priv;
- cfi_intel_pri_ext_t *pri_ext = cfi_info->pri_ext;
+ struct cfi_intel_pri_ext *pri_ext = cfi_info->pri_ext;
target_t *target = bank->target;
uint8_t command[8];
int retry = 0;
@@ -2448,7 +2448,7 @@ static int cfi_intel_protect_check(struct flash_bank_s *bank)
{
int retval;
struct cfi_flash_bank *cfi_info = bank->driver_priv;
- cfi_intel_pri_ext_t *pri_ext = cfi_info->pri_ext;
+ struct cfi_intel_pri_ext *pri_ext = cfi_info->pri_ext;
target_t *target = bank->target;
uint8_t command[CFI_MAX_BUS_WIDTH];
int i;
diff --git a/src/flash/cfi.h b/src/flash/cfi.h
index 9cf7d582..89ddc404 100644
--- a/src/flash/cfi.h
+++ b/src/flash/cfi.h
@@ -76,7 +76,7 @@ struct cfi_flash_bank
* as defined for the Advanced+ Boot Block Flash Memory (C3)
* and used by the linux kernel cfi driver (as of 2.6.14)
*/
-typedef struct cfi_intel_pri_ext_s
+struct cfi_intel_pri_ext
{
char pri[3];
uint8_t major_version;
@@ -91,7 +91,7 @@ typedef struct cfi_intel_pri_ext_s
uint8_t fact_prot_reg_size;
uint8_t user_prot_reg_size;
uint8_t extra[0];
-} cfi_intel_pri_ext_t;
+};
/* Spansion primary extended query table as defined for and used by
* the linux kernel cfi driver (as of 2.6.15)