From f38527035acf4dfd85f73c72094ba4e437ae3739 Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Fri, 27 Jun 2025 11:05:18 +0200 Subject: [PATCH] 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 --- drivers/watchdog/wdt_iwdg_wch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/wdt_iwdg_wch.c b/drivers/watchdog/wdt_iwdg_wch.c index 4aecbdcbca0..70f9ca946f2 100644 --- a/drivers/watchdog/wdt_iwdg_wch.c +++ b/drivers/watchdog/wdt_iwdg_wch.c @@ -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,