From ac36886e62709e87ed758e459645a8971990182e Mon Sep 17 00:00:00 2001 From: "Peter A. Bigot" Date: Mon, 21 Jan 2019 06:02:12 -0600 Subject: [PATCH] drivers: nrf: timer: add inline qualifier where inlining is intended Not necessary with gcc, and Zephyr is inconsistent about using the qualifier, but making the intent explicit is a good thing. Signed-off-by: Peter A. Bigot --- drivers/timer/nrf_rtc_timer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/timer/nrf_rtc_timer.c b/drivers/timer/nrf_rtc_timer.c index 7002580bcb8..cc5e5a24742 100644 --- a/drivers/timer/nrf_rtc_timer.c +++ b/drivers/timer/nrf_rtc_timer.c @@ -39,17 +39,17 @@ static u32_t last_count; -static u32_t counter_sub(u32_t a, u32_t b) +static inline u32_t counter_sub(u32_t a, u32_t b) { return (a - b) & COUNTER_MAX; } -static void set_comparator(u32_t cyc) +static inline void set_comparator(u32_t cyc) { nrf_rtc_cc_set(RTC, 0, cyc); } -static u32_t counter(void) +static inline u32_t counter(void) { return nrf_rtc_counter_get(RTC); }