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:
parent
bd4d65107d
commit
f38527035a
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user