diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 04:50:26 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 11:58:04 -0800 |
commit | e1c26950c03b09efe42b8a25dd83f1e50e22a507 (patch) | |
tree | 83c1cba0002e9a9c925cf6addbb8ae63a92ae9e9 /src/jtag/jlink.c | |
parent | 8bbb279c2820e8d0b3c95e0de0289be933ccea92 (diff) |
pending_scan_result_t -> struct pending_scan_result
Remove misleading typedef from struct struct pending_scan_result.
Future patches need to remove these duplicated types and code.
Diffstat (limited to 'src/jtag/jlink.c')
-rw-r--r-- | src/jtag/jlink.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/jtag/jlink.c b/src/jtag/jlink.c index 8d9aa8f0..0b21c886 100644 --- a/src/jtag/jlink.c +++ b/src/jtag/jlink.c @@ -675,18 +675,17 @@ static uint8_t tms_buffer[JLINK_TAP_BUFFER_SIZE]; static uint8_t tdi_buffer[JLINK_TAP_BUFFER_SIZE]; static uint8_t tdo_buffer[JLINK_TAP_BUFFER_SIZE]; -typedef struct -{ +struct pending_scan_result { int first; /* First bit position in tdo_buffer to read */ int length; /* Number of bits to read */ scan_command_t *command; /* Corresponding scan command */ uint8_t *buffer; -} pending_scan_result_t; +}; #define MAX_PENDING_SCAN_RESULTS 256 static int pending_scan_results_length; -static pending_scan_result_t pending_scan_results_buffer[MAX_PENDING_SCAN_RESULTS]; +static struct pending_scan_result pending_scan_results_buffer[MAX_PENDING_SCAN_RESULTS]; static void jlink_tap_init(void) { @@ -740,7 +739,7 @@ static void jlink_tap_append_step(int tms, int tdi) static void jlink_tap_append_scan(int length, uint8_t *buffer, scan_command_t *command) { - pending_scan_result_t *pending_scan_result = + struct pending_scan_result *pending_scan_result = &pending_scan_results_buffer[pending_scan_results_length]; int i; @@ -802,7 +801,7 @@ static int jlink_tap_execute(void) for (i = 0; i < pending_scan_results_length; i++) { - pending_scan_result_t *pending_scan_result = &pending_scan_results_buffer[i]; + struct pending_scan_result *pending_scan_result = &pending_scan_results_buffer[i]; uint8_t *buffer = pending_scan_result->buffer; int length = pending_scan_result->length; int first = pending_scan_result->first; |