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

drivers: watchdog: 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 bd4d6510
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -77,7 +77,7 @@ static int iwdg_wch_feed(const struct device *dev, int channel_id)
	return 0;
	return 0;
}
}


static const struct wdt_driver_api iwdg_wch_api = {
static DEVICE_API(wdt, iwdg_wch_api) = {
	.setup = iwdg_wch_setup,
	.setup = iwdg_wch_setup,
	.disable = iwdg_wch_disable,
	.disable = iwdg_wch_disable,
	.install_timeout = iwdg_wch_install_timeout,
	.install_timeout = iwdg_wch_install_timeout,