summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 07:38:47 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:07 -0800
commit5948e66ee8f2331606c2adce439c5d7ebc77d51f (patch)
tree7851d3da9bd64df49b083d0c05c1ab7b05d06eec
parentc7b96a4dc106fc28808f9503d15803e942b941a0 (diff)
downloadopenocd_libswd-5948e66ee8f2331606c2adce439c5d7ebc77d51f.tar.gz
openocd_libswd-5948e66ee8f2331606c2adce439c5d7ebc77d51f.tar.bz2
openocd_libswd-5948e66ee8f2331606c2adce439c5d7ebc77d51f.tar.xz
openocd_libswd-5948e66ee8f2331606c2adce439c5d7ebc77d51f.zip
orion_nand_controller_t -> struct orion_nand_controller
Remove misleading typedef and redundant suffix from struct orion_nand_controller.
-rw-r--r--src/flash/orion_nand.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/flash/orion_nand.c b/src/flash/orion_nand.c
index 03280c18..82c717ac 100644
--- a/src/flash/orion_nand.c
+++ b/src/flash/orion_nand.c
@@ -30,7 +30,7 @@
#include "armv4_5.h"
-typedef struct orion_nand_controller_s
+struct orion_nand_controller
{
struct target_s *target;
@@ -39,7 +39,7 @@ typedef struct orion_nand_controller_s
uint32_t cmd;
uint32_t addr;
uint32_t data;
-} orion_nand_controller_t;
+};
#define CHECK_HALTED \
do { \
@@ -51,7 +51,7 @@ typedef struct orion_nand_controller_s
static int orion_nand_command(struct nand_device_s *nand, uint8_t command)
{
- orion_nand_controller_t *hw = nand->controller_priv;
+ struct orion_nand_controller *hw = nand->controller_priv;
target_t *target = hw->target;
CHECK_HALTED;
@@ -61,7 +61,7 @@ static int orion_nand_command(struct nand_device_s *nand, uint8_t command)
static int orion_nand_address(struct nand_device_s *nand, uint8_t address)
{
- orion_nand_controller_t *hw = nand->controller_priv;
+ struct orion_nand_controller *hw = nand->controller_priv;
target_t *target = hw->target;
CHECK_HALTED;
@@ -71,7 +71,7 @@ static int orion_nand_address(struct nand_device_s *nand, uint8_t address)
static int orion_nand_read(struct nand_device_s *nand, void *data)
{
- orion_nand_controller_t *hw = nand->controller_priv;
+ struct orion_nand_controller *hw = nand->controller_priv;
target_t *target = hw->target;
CHECK_HALTED;
@@ -81,7 +81,7 @@ static int orion_nand_read(struct nand_device_s *nand, void *data)
static int orion_nand_write(struct nand_device_s *nand, uint16_t data)
{
- orion_nand_controller_t *hw = nand->controller_priv;
+ struct orion_nand_controller *hw = nand->controller_priv;
target_t *target = hw->target;
CHECK_HALTED;
@@ -98,7 +98,7 @@ static int orion_nand_slow_block_write(struct nand_device_s *nand, uint8_t *data
static int orion_nand_fast_block_write(struct nand_device_s *nand, uint8_t *data, int size)
{
- orion_nand_controller_t *hw = nand->controller_priv;
+ struct orion_nand_controller *hw = nand->controller_priv;
int retval;
hw->io.chunk_size = nand->page_size;
@@ -127,7 +127,7 @@ static int orion_nand_register_commands(struct command_context_s *cmd_ctx)
NAND_DEVICE_COMMAND_HANDLER(orion_nand_device_command)
{
- orion_nand_controller_t *hw;
+ struct orion_nand_controller *hw;
uint32_t base;
uint8_t ale, cle;