rtc: Add RTC range
Add a way for drivers to inform the core of the supported date/time range. The core can then check whether the date/time or alarm is in the range before calling ->set_time, ->set_mmss or ->set_alarm. It returns -ERANGE when the time is out of range. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
@@ -43,6 +43,14 @@ Contact: linux-rtc@vger.kernel.org
|
||||
Description:
|
||||
(RO) The name of the RTC corresponding to this sysfs directory
|
||||
|
||||
What: /sys/class/rtc/rtcX/range
|
||||
Date: January 2018
|
||||
KernelVersion: 4.16
|
||||
Contact: linux-rtc@vger.kernel.org
|
||||
Description:
|
||||
Valid time range for the RTC, as seconds from epoch, formatted
|
||||
as [min, max]
|
||||
|
||||
What: /sys/class/rtc/rtcX/since_epoch
|
||||
Date: March 2006
|
||||
KernelVersion: 2.6.17
|
||||
|
Reference in New Issue
Block a user