summaryrefslogtreecommitdiff
path: root/src/flash/orion_nand.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-13 11:32:17 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 11:58:14 -0800
commit2f6e56e38320350bb300b363d0b3737fa8d1f3ea (patch)
tree18a4c4b3d39b789af7c8fe44387888c7ec4f294b /src/flash/orion_nand.c
parent0f1163e823c6ca3c2a81fa296157f5dde0635fea (diff)
downloadopenocd+libswd-2f6e56e38320350bb300b363d0b3737fa8d1f3ea.tar.gz
openocd+libswd-2f6e56e38320350bb300b363d0b3737fa8d1f3ea.tar.bz2
openocd+libswd-2f6e56e38320350bb300b363d0b3737fa8d1f3ea.tar.xz
openocd+libswd-2f6e56e38320350bb300b363d0b3737fa8d1f3ea.zip
nand_device_t -> struct nand_device
Remove misleading typedef and redundant suffix from struct nand_device.
Diffstat (limited to 'src/flash/orion_nand.c')
-rw-r--r--src/flash/orion_nand.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/flash/orion_nand.c b/src/flash/orion_nand.c
index d6519f2f..0d4e1ea8 100644
--- a/src/flash/orion_nand.c
+++ b/src/flash/orion_nand.c
@@ -49,7 +49,7 @@ struct orion_nand_controller
} \
} while (0)
-static int orion_nand_command(struct nand_device_s *nand, uint8_t command)
+static int orion_nand_command(struct nand_device *nand, uint8_t command)
{
struct orion_nand_controller *hw = nand->controller_priv;
struct target *target = hw->target;
@@ -59,7 +59,7 @@ static int orion_nand_command(struct nand_device_s *nand, uint8_t command)
return ERROR_OK;
}
-static int orion_nand_address(struct nand_device_s *nand, uint8_t address)
+static int orion_nand_address(struct nand_device *nand, uint8_t address)
{
struct orion_nand_controller *hw = nand->controller_priv;
struct target *target = hw->target;
@@ -69,7 +69,7 @@ static int orion_nand_address(struct nand_device_s *nand, uint8_t address)
return ERROR_OK;
}
-static int orion_nand_read(struct nand_device_s *nand, void *data)
+static int orion_nand_read(struct nand_device *nand, void *data)
{
struct orion_nand_controller *hw = nand->controller_priv;
struct target *target = hw->target;
@@ -79,7 +79,7 @@ static int orion_nand_read(struct nand_device_s *nand, void *data)
return ERROR_OK;
}
-static int orion_nand_write(struct nand_device_s *nand, uint16_t data)
+static int orion_nand_write(struct nand_device *nand, uint16_t data)
{
struct orion_nand_controller *hw = nand->controller_priv;
struct target *target = hw->target;
@@ -89,14 +89,14 @@ static int orion_nand_write(struct nand_device_s *nand, uint16_t data)
return ERROR_OK;
}
-static int orion_nand_slow_block_write(struct nand_device_s *nand, uint8_t *data, int size)
+static int orion_nand_slow_block_write(struct nand_device *nand, uint8_t *data, int size)
{
while (size--)
orion_nand_write(nand, *data++);
return ERROR_OK;
}
-static int orion_nand_fast_block_write(struct nand_device_s *nand, uint8_t *data, int size)
+static int orion_nand_fast_block_write(struct nand_device *nand, uint8_t *data, int size)
{
struct orion_nand_controller *hw = nand->controller_priv;
int retval;
@@ -110,12 +110,12 @@ static int orion_nand_fast_block_write(struct nand_device_s *nand, uint8_t *data
return retval;
}
-static int orion_nand_reset(struct nand_device_s *nand)
+static int orion_nand_reset(struct nand_device *nand)
{
return orion_nand_command(nand, NAND_CMD_RESET);
}
-static int orion_nand_controller_ready(struct nand_device_s *nand, int timeout)
+static int orion_nand_controller_ready(struct nand_device *nand, int timeout)
{
return 1;
}
@@ -164,7 +164,7 @@ NAND_DEVICE_COMMAND_HANDLER(orion_nand_device_command)
return ERROR_OK;
}
-static int orion_nand_init(struct nand_device_s *nand)
+static int orion_nand_init(struct nand_device *nand)
{
return ERROR_OK;
}