Skip to content
Commit 7efd885b authored by Jakub Topic's avatar Jakub Topic Committed by Anas Nashif
Browse files

drivers: rtc: update alarm_set_callback to return ENOTSUP



This commit addresses the issue related to the rtc.h API returning ENOSYS
for a driver not implementing alarm_set_callback when the ALARM
functionality is enabled but interrupts, and thus alarm callbacks, are not
supported by the current configuration.

The following drivers have been modified to return correct code:
- rtc_pcf8523
- rtc_pcf8563
- rtc_rv3028

Signed-off-by: default avatarJakub Topic <jakub.topic@anitra.cz>
parent 3de17474
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment