diff --git a/src/flash/str9xpec.c b/src/flash/str9xpec.c index 2ab92d983..1ca7360c0 100644 --- a/src/flash/str9xpec.c +++ b/src/flash/str9xpec.c @@ -325,7 +325,7 @@ static int str9xpec_flash_bank_command(struct command_context_s *cmd_ctx, char * arm7_9 = armv4_5->arch_info; jtag_info = &arm7_9->jtag_info; - str9xpec_info->tap = jtag_TapByAbsPosition( jtag_info->tap->abs_chain_position - 1); + str9xpec_info->tap = jtag_tap_by_abs_position( jtag_info->tap->abs_chain_position - 1); str9xpec_info->isc_enable = 0; str9xpec_build_block_list(bank); diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c index c934b9bae..33330a09a 100644 --- a/src/jtag/jtag.c +++ b/src/jtag/jtag.c @@ -294,7 +294,7 @@ jtag_tap_t *jtag_TapByString( const char *s ) n = strtol( s, &cp, 0 ); if( (s != cp) && (*cp == 0) ){ /* Then it is... */ - t = jtag_TapByAbsPosition(n); + t = jtag_tap_by_abs_position(n); } } return t; @@ -319,7 +319,7 @@ jtag_tap_t * jtag_TapByJimObj( Jim_Interp *interp, Jim_Obj *o ) } /* returns a pointer to the n-th device in the scan chain */ -jtag_tap_t * jtag_TapByAbsPosition( int n ) +jtag_tap_t * jtag_tap_by_abs_position( int n ) { int orig_n; jtag_tap_t *t; diff --git a/src/jtag/jtag.h b/src/jtag/jtag.h index aff2dff1e..d41115546 100644 --- a/src/jtag/jtag.h +++ b/src/jtag/jtag.h @@ -180,7 +180,7 @@ 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_TapByJimObj(Jim_Interp* interp, Jim_Obj* obj); -extern jtag_tap_t* jtag_TapByAbsPosition(int abs_position); +extern jtag_tap_t* jtag_tap_by_abs_position(int abs_position); extern int jtag_NumEnabledTaps(void); extern int jtag_NumTotalTaps(void);