jtag ulink: dont compile function when not required
authorAlexander Kurz <akurz@blala.de>
Sun, 14 Feb 2016 09:04:51 +0000 (10:04 +0100)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Tue, 17 May 2016 21:30:32 +0000 (22:30 +0100)
commit17ec0b1044685d2da44c6992870b749e0009b83a
tree50232558bc6f3e271917888f9063acd7610c8227
parent20f7a084ddbf5520e8d60ac9c62f04b08d3abe18
jtag ulink: dont compile function when not required

ulink_calculate_frequency() is used exclusively when
_DEBUG_JTAG_IO_ is set, no need to compile this
function if it is not used.
Declaring it static in the same commit.

Change-Id: I243ffdf69a1dc3bee6d16e4bb8d78396b6ea5144
Signed-off-by: Alexander Kurz <akurz@blala.de>
Reviewed-on: http://openocd.zylin.com/3241
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
src/jtag/drivers/ulink.c