summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 07:38:42 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:07 -0800
commit958ff04b086d60e901bfd9c05cf7b4e3e5af641a (patch)
tree9728864c9bc0715ff6c49eb1e6e46c21023abb99 /src
parentf7ca04721300da7ddd4031885e98f3138825ccd1 (diff)
downloadopenocd+libswd-958ff04b086d60e901bfd9c05cf7b4e3e5af641a.tar.gz
openocd+libswd-958ff04b086d60e901bfd9c05cf7b4e3e5af641a.tar.bz2
openocd+libswd-958ff04b086d60e901bfd9c05cf7b4e3e5af641a.tar.xz
openocd+libswd-958ff04b086d60e901bfd9c05cf7b4e3e5af641a.zip
nand_info_t -> struct nand_info
Remove misleading typedef and redundant suffix from struct nand_info.
Diffstat (limited to 'src')
-rw-r--r--src/flash/nand.c2
-rw-r--r--src/flash/nand.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/flash/nand.c b/src/flash/nand.c
index dba18777..79483612 100644
--- a/src/flash/nand.c
+++ b/src/flash/nand.c
@@ -74,7 +74,7 @@ static command_t *nand_cmd;
* 256 256 Byte page size
* 512 512 Byte page size
*/
-static nand_info_t nand_flash_ids[] =
+static struct nand_info nand_flash_ids[] =
{
/* start "museum" IDs */
{"NAND 1MiB 5V 8-bit", 0x6e, 256, 1, 0x1000, 0},
diff --git a/src/flash/nand.h b/src/flash/nand.h
index 93fd34ff..ea319479 100644
--- a/src/flash/nand.h
+++ b/src/flash/nand.h
@@ -78,7 +78,7 @@ typedef struct nand_device_s
struct nand_flash_controller *controller;
void *controller_priv;
struct nand_manufacturer *manufacturer;
- struct nand_info_s *device;
+ struct nand_info *device;
int bus_width;
int address_cycles;
int page_size;
@@ -109,7 +109,7 @@ struct nand_manufacturer
char *name;
};
-typedef struct nand_info_s
+struct nand_info
{
char *name;
int id;
@@ -117,7 +117,7 @@ typedef struct nand_info_s
int chip_size;
int erase_size;
int options;
-} nand_info_t;
+};
/* Option constants for bizarre disfunctionality and real features
*/