summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-06-16 00:08:58 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-06-16 00:08:58 +0200
commit72d227cd5e32a6b141026e31ca4702cd69c79e62 (patch)
treea46d9e9a5490cd54b688d12a57538f76f64fa8be /src
parent42c84c59b1a733c27e164920cca58716cd7e8740 (diff)
downloadopenocd+libswd-72d227cd5e32a6b141026e31ca4702cd69c79e62.tar.gz
openocd+libswd-72d227cd5e32a6b141026e31ca4702cd69c79e62.tar.bz2
openocd+libswd-72d227cd5e32a6b141026e31ca4702cd69c79e62.tar.xz
openocd+libswd-72d227cd5e32a6b141026e31ca4702cd69c79e62.zip
tms470: -Wshadow warning fixes
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src')
-rw-r--r--src/flash/nor/tms470.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/nor/tms470.c b/src/flash/nor/tms470.c
index 343c43ed..2f02e5d7 100644
--- a/src/flash/nor/tms470.c
+++ b/src/flash/nor/tms470.c
@@ -1215,7 +1215,7 @@ static int tms470_protect_check(struct flash_bank *bank)
/* ---------------------------------------------------------------------- */
-static int tms470_info(struct flash_bank *bank, char *buf, int buf_size)
+static int get_tms470_info(struct flash_bank *bank, char *buf, int buf_size)
{
int used = 0;
struct tms470_flash_bank *tms470_info = bank->driver_priv;
@@ -1275,5 +1275,5 @@ struct flash_driver tms470_flash = {
.auto_probe = tms470_auto_probe,
.erase_check = tms470_erase_check,
.protect_check = tms470_protect_check,
- .info = tms470_info,
+ .info = get_tms470_info,
};