From a3d9ede3415098f2f8dce29fbd2bc985ce039636 Mon Sep 17 00:00:00 2001 From: Yong Cong Sin Date: Thu, 12 Sep 2024 14:06:33 +0800 Subject: [PATCH] drivers: counter: shell: change callback functions to static These callback functions are not used outside of the file, make them `static` Signed-off-by: Yong Cong Sin Signed-off-by: Yong Cong Sin --- drivers/counter/counter_timer_shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/counter/counter_timer_shell.c b/drivers/counter/counter_timer_shell.c index 0f04f43d9fb..d5ab8c2e1df 100644 --- a/drivers/counter/counter_timer_shell.c +++ b/drivers/counter/counter_timer_shell.c @@ -22,14 +22,14 @@ static struct k_sem timer_sem; -void timer_top_handler(const struct device *counter_dev, void *user_data) +static void timer_top_handler(const struct device *counter_dev, void *user_data) { ARG_UNUSED(counter_dev); k_sem_give(&timer_sem); } -void timer_alarm_handler(const struct device *counter_dev, uint8_t chan_id, +static void timer_alarm_handler(const struct device *counter_dev, uint8_t chan_id, uint32_t ticks, void *user_data) { ARG_UNUSED(counter_dev);