Skip to content

Commit 674a6a1

Browse files
pdgendthenrikbrixandersen
authored andcommitted
drivers: watchdog: rts5817: Put API into iterable section
Use DEVICE_API macro to put the driver API into the correct iterable section. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
1 parent 40cbbd5 commit 674a6a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/watchdog/wdt_rts5817.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static int rts_fp_wdt_init(const struct device *dev)
136136
return 0;
137137
}
138138

139-
static const struct wdt_driver_api rts_fp_wdt_driver_api = {
139+
static DEVICE_API(wdt, rts_fp_wdt_driver_api) = {
140140
.setup = rts_fp_wdt_setup,
141141
.disable = rts_fp_wdt_disable,
142142
.install_timeout = rts_fp_wdt_install_timeout,

0 commit comments

Comments
 (0)