From 11fd673f0c315346ef065289b164da58dd1fd4c6 Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Sat, 10 Apr 2010 22:12:20 +0800 Subject: [PATCH] TARGET/DSP563XX_ONCE: review scope of functions Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo --- src/target/dsp563xx_once.c | 4 ++-- src/target/dsp563xx_once.h | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/target/dsp563xx_once.c b/src/target/dsp563xx_once.c index 0186751f0a..416cb6b598 100644 --- a/src/target/dsp563xx_once.c +++ b/src/target/dsp563xx_once.c @@ -30,7 +30,7 @@ #include "dsp563xx_once.h" /** single word instruction */ -int dsp563xx_once_ir_exec(struct jtag_tap *tap, uint8_t instr, uint8_t rw, +static int dsp563xx_once_ir_exec(struct jtag_tap *tap, uint8_t instr, uint8_t rw, uint8_t go, uint8_t ex) { dsp563xx_write_dr_u8(tap, 0, @@ -41,7 +41,7 @@ int dsp563xx_once_ir_exec(struct jtag_tap *tap, uint8_t instr, uint8_t rw, } /** single word instruction */ -int dsp563xx_once_ir_exec_nq(struct jtag_tap *tap, uint8_t instr, uint8_t rw, +static int dsp563xx_once_ir_exec_nq(struct jtag_tap *tap, uint8_t instr, uint8_t rw, uint8_t go, uint8_t ex) { dsp563xx_write_dr_u8(tap, 0, diff --git a/src/target/dsp563xx_once.h b/src/target/dsp563xx_once.h index 871f62280c..942cd65dbf 100644 --- a/src/target/dsp563xx_once.h +++ b/src/target/dsp563xx_once.h @@ -57,12 +57,6 @@ #define DSP563XX_ONCE_OPABEX 0x011 /* trace buffer/inc ptr */ #define DSP563XX_ONCE_NOREG 0x01F /* no register selected */ -/** single word instruction */ -int dsp563xx_once_ir_exec(struct jtag_tap *tap, uint8_t instr, uint8_t rw, - uint8_t go, uint8_t ex); -/** single word instruction */ -int dsp563xx_once_ir_exec_nq(struct jtag_tap *tap, uint8_t instr, uint8_t rw, - uint8_t go, uint8_t ex); /** once read register */ int dsp563xx_once_reg_read(struct jtag_tap *tap, uint8_t reg, uint32_t * data); /** once write register */ -- 2.30.2