Skip to content

Commit

Permalink
drivers: rtc: Wrap driver instances in device API macro
Browse files Browse the repository at this point in the history
Use the device API macro to place the driver API instance into an iterable
section.

Signed-off-by: Pieter De Gendt <[email protected]>
  • Loading branch information
pdgendt authored and kartben committed Feb 12, 2025
1 parent 4670e16 commit f47bfeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc_sam0.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ static int rtc_sam0_init(const struct device *dev)
return 0;
}

static const struct rtc_driver_api rtc_sam0_driver_api = {
static DEVICE_API(rtc, rtc_sam0_driver_api) = {
.set_time = rtc_sam0_set_time,
.get_time = rtc_sam0_get_time,
#ifdef CONFIG_RTC_ALARM
Expand Down

0 comments on commit f47bfeb

Please sign in to comment.