Skip to content

Commit 9d36f4b

Browse files
pdgendthenrikbrixandersen
authored andcommitted
drivers: counter: Put counter driver API into iterable section
Use DEVICE_API macro to put the API into the correct iterable section. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
1 parent d1b5705 commit 9d36f4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎drivers/counter/counter_mcux_rtc_jdp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ static int mcux_rtc_jdp_init(const struct device *dev)
398398
return 0;
399399
}
400400

401-
static const struct counter_driver_api mcux_rtc_jdp_driver_api = {
401+
static DEVICE_API(counter, mcux_rtc_jdp_driver_api) = {
402402
.start = mcux_rtc_jdp_start,
403403
.stop = mcux_rtc_jdp_stop,
404404
.get_value = mcux_rtc_jdp_get_value,

‎drivers/counter/counter_npcx_lct.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ static uint32_t counter_npcx_get_pending_int(const struct device *dev)
330330
return reg_base->LCTSTAT & NPCX_LCT_STAT_EV_MASK;
331331
}
332332

333-
static const struct counter_driver_api counter_npcx_lct_api = {
333+
static DEVICE_API(counter, counter_npcx_lct_api) = {
334334
.start = counter_npcx_lct_start,
335335
.stop = counter_npcx_lct_stop,
336336
.get_value = counter_npcx_lct_get_value,

0 commit comments

Comments
 (0)