Skip to content

Commit f385270

Browse files
pdgendtdanieldegrasse
authored andcommitted
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>
1 parent bd4d651 commit f385270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/watchdog/wdt_iwdg_wch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static int iwdg_wch_feed(const struct device *dev, int channel_id)
7777
return 0;
7878
}
7979

80-
static const struct wdt_driver_api iwdg_wch_api = {
80+
static DEVICE_API(wdt, iwdg_wch_api) = {
8181
.setup = iwdg_wch_setup,
8282
.disable = iwdg_wch_disable,
8383
.install_timeout = iwdg_wch_install_timeout,

0 commit comments

Comments
 (0)