drivers: watchdog: Place device APIs in linker sections

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

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2025-06-27 11:05:18 +02:00 committed by Daniel DeGrasse
parent bd4d65107d
commit f38527035a

View File

@ -77,7 +77,7 @@ static int iwdg_wch_feed(const struct device *dev, int channel_id)
return 0;
}
static const struct wdt_driver_api iwdg_wch_api = {
static DEVICE_API(wdt, iwdg_wch_api) = {
.setup = iwdg_wch_setup,
.disable = iwdg_wch_disable,
.install_timeout = iwdg_wch_install_timeout,