Commit c57d76e1 authored by Pieter De Gendt's avatar Pieter De Gendt Committed by Daniel DeGrasse
Browse files

drivers: counter: Place device APIs in linker sections



Use DEVICE_API macro to place driver API instances into a linker section.

Signed-off-by: default avatarPieter De Gendt <pieter.degendt@basalte.be>
parent 8e240520
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -243,7 +243,7 @@ static int counter_cc23x0_lgpt_stop(const struct device *dev)
	return 0;
}

static const struct counter_driver_api cc23x0_lgpt_api = {
static DEVICE_API(counter, cc23x0_lgpt_api) = {
	.start = counter_cc23x0_lgpt_start,
	.stop = counter_cc23x0_lgpt_stop,
	.get_value = counter_cc23x0_lgpt_get_value,
+1 −1
Original line number Diff line number Diff line
@@ -208,7 +208,7 @@ static int counter_cc23x0_init(const struct device *dev)
	return 0;
}

static const struct counter_driver_api rtc_cc23x0_api = {
static DEVICE_API(counter, rtc_cc23x0_api) = {
	.start = counter_cc23x0_start,
	.stop = counter_cc23x0_stop,
	.get_value = counter_cc23x0_get_value,