From 321948b41f9a697c02d7c3f2ac7df71220250907 Mon Sep 17 00:00:00 2001 From: Alexander Osipenko Date: Fri, 25 May 2012 14:39:13 +0400 Subject: [PATCH] J-Link: Initialize .transports to suppress warning. jtag_interface.transports field was left uninitialized, which triggers warning message on program startup. Although hardware natively supports SWD interface, no software support currently present, so the value choosen to be . Change-Id: I2da41790b1850950af416cec4362d5b7bf927b2b Signed-off-by: Alexander Osipenko Reviewed-on: http://openocd.zylin.com/670 Tested-by: jenkins Reviewed-by: Xiaofan Reviewed-by: Spencer Oliver --- src/jtag/drivers/jlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jtag/drivers/jlink.c b/src/jtag/drivers/jlink.c index 54fc4c11..33b15d29 100644 --- a/src/jtag/drivers/jlink.c +++ b/src/jtag/drivers/jlink.c @@ -1298,6 +1298,7 @@ static const struct command_registration jlink_command_handlers[] = { struct jtag_interface jlink_interface = { .name = "jlink", .commands = jlink_command_handlers, + .transports = jtag_only, .execute_queue = jlink_execute_queue, .speed = jlink_speed, -- 2.39.5