diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 07:38:27 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:07 -0800 |
commit | 4bc46d61cade59a43d158862dfbe738255f00a81 (patch) | |
tree | 325e4b2e1a12c033734755ccdbb55c9cb8f94640 /src | |
parent | 79338ec6c208fc34d2c16d109dea6bf5ae20f860 (diff) | |
download | openocd_libswd-4bc46d61cade59a43d158862dfbe738255f00a81.tar.gz openocd_libswd-4bc46d61cade59a43d158862dfbe738255f00a81.tar.bz2 openocd_libswd-4bc46d61cade59a43d158862dfbe738255f00a81.tar.xz openocd_libswd-4bc46d61cade59a43d158862dfbe738255f00a81.zip |
mx3_nf_controller_t -> struct mx3_nf_controller
Remove misleading typedef and redundant suffix from struct mx3_nf_controller.
Diffstat (limited to 'src')
-rw-r--r-- | src/flash/mx3_nand.c | 24 | ||||
-rw-r--r-- | src/flash/mx3_nand.h | 4 |
2 files changed, 14 insertions, 14 deletions
diff --git a/src/flash/mx3_nand.c b/src/flash/mx3_nand.c index a51f8c8d..bce7aa8f 100644 --- a/src/flash/mx3_nand.c +++ b/src/flash/mx3_nand.c @@ -63,8 +63,8 @@ static int imx31_controller_ready (struct nand_device_s *nand, int tout); NAND_DEVICE_COMMAND_HANDLER(imx31_nand_device_command) { - mx3_nf_controller_t *mx3_nf_info; - mx3_nf_info = malloc (sizeof (mx3_nf_controller_t)); + struct mx3_nf_controller *mx3_nf_info; + mx3_nf_info = malloc (sizeof (struct mx3_nf_controller)); if (mx3_nf_info == NULL) { LOG_ERROR ("no memory for nand controller"); @@ -123,7 +123,7 @@ NAND_DEVICE_COMMAND_HANDLER(imx31_nand_device_command) static int imx31_init (struct nand_device_s *nand) { - mx3_nf_controller_t *mx3_nf_info = nand->controller_priv; + struct mx3_nf_controller *mx3_nf_info = nand->controller_priv; target_t *target = mx3_nf_info->target; { @@ -266,7 +266,7 @@ static int imx31_init (struct nand_device_s *nand) static int imx31_read_data (struct nand_device_s *nand, void *data) { - mx3_nf_controller_t *mx3_nf_info = nand->controller_priv; + struct mx3_nf_controller *mx3_nf_info = nand->controller_priv; target_t *target = mx3_nf_info->target; { /* @@ -337,7 +337,7 @@ static int imx31_reset (struct nand_device_s *nand) static int imx31_command (struct nand_device_s *nand, uint8_t command) { - mx3_nf_controller_t *mx3_nf_info = nand->controller_priv; + struct mx3_nf_controller *mx3_nf_info = nand->controller_priv; target_t *target = mx3_nf_info->target; { /* @@ -411,7 +411,7 @@ static int imx31_command (struct nand_device_s *nand, uint8_t command) static int imx31_address (struct nand_device_s *nand, uint8_t address) { - mx3_nf_controller_t *mx3_nf_info = nand->controller_priv; + struct mx3_nf_controller *mx3_nf_info = nand->controller_priv; target_t *target = mx3_nf_info->target; { /* @@ -444,7 +444,7 @@ static int imx31_address (struct nand_device_s *nand, uint8_t address) static int imx31_controller_ready (struct nand_device_s *nand, int tout) { uint16_t poll_complete_status; - mx3_nf_controller_t *mx3_nf_info = nand->controller_priv; + struct mx3_nf_controller *mx3_nf_info = nand->controller_priv; target_t *target = mx3_nf_info->target; { @@ -476,7 +476,7 @@ static int imx31_write_page (struct nand_device_s *nand, uint32_t page, uint8_t * data, uint32_t data_size, uint8_t * oob, uint32_t oob_size) { - mx3_nf_controller_t *mx3_nf_info = nand->controller_priv; + struct mx3_nf_controller *mx3_nf_info = nand->controller_priv; target_t *target = mx3_nf_info->target; if (data_size % 2) @@ -583,7 +583,7 @@ static int imx31_read_page (struct nand_device_s *nand, uint32_t page, uint8_t * data, uint32_t data_size, uint8_t * oob, uint32_t oob_size) { - mx3_nf_controller_t *mx3_nf_info = nand->controller_priv; + struct mx3_nf_controller *mx3_nf_info = nand->controller_priv; target_t *target = mx3_nf_info->target; if (data_size % 2) @@ -658,7 +658,7 @@ static int test_iomux_settings (target_t * target, uint32_t address, static int initialize_nf_controller (struct nand_device_s *nand) { - mx3_nf_controller_t *mx3_nf_info = nand->controller_priv; + struct mx3_nf_controller *mx3_nf_info = nand->controller_priv; target_t *target = mx3_nf_info->target; /* * resets NAND flash controller in zero time ? I dont know. @@ -786,7 +786,7 @@ static int poll_for_complete_op (target_t * target, const char *text) static int validate_target_state (struct nand_device_s *nand) { - mx3_nf_controller_t *mx3_nf_info = nand->controller_priv; + struct mx3_nf_controller *mx3_nf_info = nand->controller_priv; target_t *target = mx3_nf_info->target; if (target->state != TARGET_HALTED) @@ -808,7 +808,7 @@ static int validate_target_state (struct nand_device_s *nand) static int do_data_output (struct nand_device_s *nand) { - mx3_nf_controller_t *mx3_nf_info = nand->controller_priv; + struct mx3_nf_controller *mx3_nf_info = nand->controller_priv; target_t *target = mx3_nf_info->target; switch (mx3_nf_info->fin) { diff --git a/src/flash/mx3_nand.h b/src/flash/mx3_nand.h index 31938933..1f3529a7 100644 --- a/src/flash/mx3_nand.h +++ b/src/flash/mx3_nand.h @@ -108,10 +108,10 @@ struct mx3_nf_flags unsigned hw_ecc_enabled:1; }; -typedef struct mx3_nf_controller_s +struct mx3_nf_controller { struct target_s *target; enum mx_dataout_type optype; enum mx_nf_finalize_action fin; struct mx3_nf_flags flags; -} mx3_nf_controller_t; +}; |