Skip to content

Commit 2effad3

Browse files
martinjaegernashif
authored andcommitted
drivers: rtc: pcf8563: fix ifdef for alarm_set_callback
The callback should only be available when CONFIG_RTC_ALARM is defined. Signed-off-by: Martin Jäger <[email protected]>
1 parent 1fafa94 commit 2effad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rtc/rtc_pcf8563.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,10 @@ static const struct rtc_driver_api pcf8563_driver_api = {
427427
.alarm_set_time = pcf8563_alarm_set_time,
428428
.alarm_get_time = pcf8563_alarm_get_time,
429429
.alarm_is_pending = pcf8563_alarm_is_pending,
430-
#endif
431430
#ifdef PCF8563_INT1_GPIOS_IN_USE
432431
.alarm_set_callback = pcf8563_alarm_set_callback,
433432
#endif
433+
#endif
434434
};
435435

436436

0 commit comments

Comments
 (0)