diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-05 00:42:52 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-05 00:42:52 +0000 |
commit | 689e9664b00a81b637d82e990096338a10c4b720 (patch) | |
tree | ca0f5763db9f85c7c8cb14243af1b3f7b01948f1 | |
parent | 473dc89c24f3c17c04dcafbf9b5c79d73a35ffe4 (diff) | |
download | openocd_libswd-689e9664b00a81b637d82e990096338a10c4b720.tar.gz openocd_libswd-689e9664b00a81b637d82e990096338a10c4b720.tar.bz2 openocd_libswd-689e9664b00a81b637d82e990096338a10c4b720.tar.xz openocd_libswd-689e9664b00a81b637d82e990096338a10c4b720.zip |
Eliminate MixedCaps symbol from public JTAG TAP API:
- Purely mechanical transformations to the source files.
- Rename 'jtag_TapByString' as 'jtag_tap_by_string.'
git-svn-id: svn://svn.berlios.de/openocd/trunk@2065 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r-- | src/jtag/jtag.c | 6 | ||||
-rw-r--r-- | src/jtag/jtag.h | 2 | ||||
-rw-r--r-- | src/pld/virtex2.c | 2 | ||||
-rw-r--r-- | src/target/arm11.c | 2 | ||||
-rw-r--r-- | src/target/etb.c | 2 | ||||
-rw-r--r-- | src/xsvf/xsvf.c | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c index 33330a09..8695fb57 100644 --- a/src/jtag/jtag.c +++ b/src/jtag/jtag.c @@ -273,7 +273,7 @@ static void jtag_tap_add(struct jtag_tap_s *t) *tap = t; } -jtag_tap_t *jtag_TapByString( const char *s ) +jtag_tap_t *jtag_tap_by_string( const char *s ) { jtag_tap_t *t; char *cp; @@ -310,7 +310,7 @@ jtag_tap_t * jtag_TapByJimObj( Jim_Interp *interp, Jim_Obj *o ) cp = "(unknown)"; t = NULL; } else { - t = jtag_TapByString( cp ); + t = jtag_tap_by_string( cp ); } if( t == NULL ){ Jim_SetResult_sprintf(interp,"Tap: %s is unknown", cp ); @@ -2326,7 +2326,7 @@ static int handle_irscan_command(struct command_context_s *cmd_ctx, char *cmd, c for (i = 0; i < num_fields; i++) { - tap = jtag_TapByString( args[i*2] ); + tap = jtag_tap_by_string( args[i*2] ); if (tap==NULL) { command_print( cmd_ctx, "Tap: %s unknown", args[i*2] ); diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index d4111554..0e2b28a9 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -178,7 +178,7 @@ struct jtag_tap_s extern jtag_tap_t* jtag_all_taps(void); extern const char *jtag_tap_name(const jtag_tap_t *tap); extern jtag_tap_t* jtag_tap_by_position(int n); -extern jtag_tap_t* jtag_TapByString(const char* dotted_name); +extern jtag_tap_t* jtag_tap_by_string(const char* dotted_name); extern jtag_tap_t* jtag_TapByJimObj(Jim_Interp* interp, Jim_Obj* obj); extern jtag_tap_t* jtag_tap_by_abs_position(int abs_position); extern int jtag_NumEnabledTaps(void); diff --git a/src/pld/virtex2.c b/src/pld/virtex2.c index f8e13df6..821699ac 100644 --- a/src/pld/virtex2.c +++ b/src/pld/virtex2.c @@ -247,7 +247,7 @@ int virtex2_pld_device_command(struct command_context_s *cmd_ctx, char *cmd, cha return ERROR_PLD_DEVICE_INVALID; } - tap = jtag_TapByString( args[1] ); + tap = jtag_tap_by_string( args[1] ); if( tap == NULL ){ command_print( cmd_ctx, "Tap: %s does not exist", args[1] ); return ERROR_OK; diff --git a/src/target/arm11.c b/src/target/arm11.c index e4f53f1a..c55392f4 100644 --- a/src/target/arm11.c +++ b/src/target/arm11.c @@ -1837,7 +1837,7 @@ arm11_common_t * arm11_find_target(const char * arg) jtag_tap_t * tap; target_t * t; - tap = jtag_TapByString(arg); + tap = jtag_tap_by_string(arg); if (!tap) return 0; diff --git a/src/target/etb.c b/src/target/etb.c index d1c60a74..5791e578 100644 --- a/src/target/etb.c +++ b/src/target/etb.c @@ -386,7 +386,7 @@ static int handle_etb_config_command(struct command_context_s *cmd_ctx, char *cm return ERROR_FAIL; } - tap = jtag_TapByString( args[1] ); + tap = jtag_tap_by_string( args[1] ); if (tap == NULL) { command_print(cmd_ctx, "Tap: %s does not exist", args[1] ); diff --git a/src/xsvf/xsvf.c b/src/xsvf/xsvf.c index f11ca677..4ede9fc9 100644 --- a/src/xsvf/xsvf.c +++ b/src/xsvf/xsvf.c @@ -232,7 +232,7 @@ static int handle_xsvf_command(struct command_context_s *cmd_ctx, char *cmd, cha if (strcmp(args[0], "plain") != 0) { - tap = jtag_TapByString( args[0] ); + tap = jtag_tap_by_string( args[0] ); if (!tap ) { command_print( cmd_ctx, "Tap: %s unknown", args[0] ); |