Skip to content

Commit d71d4c0

Browse files
nandojvemmahadevan108
authored andcommitted
drivers: rtc: sam: Fix missing function
The zephyrproject-rtos#64939 introduced a few convenience function like rtc_utils_validate_rtc_time. However the PR did not replace all occurrences which result on a build error. This add the missing header include to remove a building warning and replace the old function by the new one. Fixes zephyrproject-rtos#81454 Signed-off-by: Gerson Fernando Budke <[email protected]>
1 parent 24c2c43 commit d71d4c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/rtc/rtc_sam.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
#include <string.h>
1616
#include <soc.h>
17+
#include "rtc_utils.h"
1718

1819
#define RTC_SAM_REG_GET_FIELD(value, field) \
1920
((RTC_##field##_Msk & value) >> RTC_##field##_Pos)
@@ -358,7 +359,7 @@ static int rtc_sam_alarm_set_time(const struct device *dev, uint16_t id, uint16_
358359
return -EINVAL;
359360
}
360361

361-
if (rtc_sam_validate_tm(timeptr, mask) == false) {
362+
if (rtc_utils_validate_rtc_time(timeptr, mask) == false) {
362363
return -EINVAL;
363364
}
364365

0 commit comments

Comments
 (0)