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 <pab@pabigot.com>
This commit is contained in:
Peter A. Bigot 2019-01-21 06:02:12 -06:00 committed by Carles Cufí
commit ac36886e62

View file

@ -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);
}