diff options
author | Guenter Roeck <[email protected]> | 2023-08-17 15:55:36 -0700 |
---|---|---|
committer | Alexandre Belloni <[email protected]> | 2023-08-27 23:50:22 +0200 |
commit | 46b79ac0b463e155b098805ff66f1f22ff249b45 (patch) | |
tree | 0c93852aa3d956eaa9c66aff7f9b573521c09b57 /scripts/rustdoc_test_builder.rs | |
parent | 3637bbdc8a446b8edb369383d2abc816c96ee864 (diff) |
rtc: ds1305: Report maximum alarm limit to rtc core
DS1305 only supports alarms up to 24 hours in the future.
Report the limit to the RTC core, and use the reported limit
to validate the requested alarm time when setting it.
If the alarm is too large when trying to set an alarm, return -ERANGE
instead of -EDOM to align with error codes returned by other rtc drivers.
Cc: Brian Norris <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions