From: openocd-gerrit <ope...@us...> - 2024-11-23 13:46:01
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 2465f1851549e16337e0eef84e581b62d541a187 (commit) from 989e9e8b5488be6dbf4ed2e9f5cbda208b841860 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 2465f1851549e16337e0eef84e581b62d541a187 Author: Antonio Borneo <bor...@gm...> Date: Sat Nov 9 18:49:11 2024 +0100 adapter: make adapter_config_khz() static The function is not referenced outside the file. Make it static. Change-Id: I72e96624749ae4cc7f4566d737a88186e899616a Signed-off-by: Antonio Borneo <bor...@gm...> Reviewed-on: https://review.openocd.org/c/openocd/+/8541 Tested-by: jenkins diff --git a/src/jtag/adapter.c b/src/jtag/adapter.c index 996a23f1f..04942f753 100644 --- a/src/jtag/adapter.c +++ b/src/jtag/adapter.c @@ -66,6 +66,8 @@ static const struct gpio_map { [ADAPTER_GPIO_IDX_LED] = { "led", ADAPTER_GPIO_DIRECTION_OUTPUT, true, true, }, }; +static int adapter_config_khz(unsigned int khz); + bool is_adapter_initialized(void) { return adapter_config.adapter_initialized; @@ -245,7 +247,8 @@ static int adapter_set_speed(int speed) return is_adapter_initialized() ? adapter_driver->speed(speed) : ERROR_OK; } -int adapter_config_khz(unsigned int khz) +/** Attempt to configure the adapter for the specified kHz. */ +static int adapter_config_khz(unsigned int khz) { LOG_DEBUG("handle adapter khz"); adapter_config.clock_mode = CLOCK_MODE_KHZ; diff --git a/src/jtag/adapter.h b/src/jtag/adapter.h index 23ffe2cc5..556952f8d 100644 --- a/src/jtag/adapter.h +++ b/src/jtag/adapter.h @@ -97,9 +97,6 @@ int adapter_get_speed(int *speed); */ int adapter_get_speed_readable(int *speed); -/** Attempt to configure the adapter for the specified kHz. */ -int adapter_config_khz(unsigned int khz); - /** * Attempt to enable RTCK/RCLK. If that fails, fallback to the * specified frequency. ----------------------------------------------------------------------- Summary of changes: src/jtag/adapter.c | 5 ++++- src/jtag/adapter.h | 3 --- 2 files changed, 4 insertions(+), 4 deletions(-) hooks/post-receive -- Main OpenOCD repository |