diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-02-17 14:58:40 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-03-17 14:20:54 +0100 |
commit | 71db049e7355f31604e2c04b6cabb71d02bd487d (patch) | |
tree | 19743f8478631b847a11cf09690a6b4f28927e76 /Documentation/ABI | |
parent | 236b7187034e87bd46eb535ab4f276267ef66ee4 (diff) | |
download | linux-71db049e7355f31604e2c04b6cabb71d02bd487d.tar.gz linux-71db049e7355f31604e2c04b6cabb71d02bd487d.tar.bz2 linux-71db049e7355f31604e2c04b6cabb71d02bd487d.zip |
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>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r-- | Documentation/ABI/testing/sysfs-class-rtc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-class-rtc b/Documentation/ABI/testing/sysfs-class-rtc index 792a38300336..95984289a4ee 100644 --- a/Documentation/ABI/testing/sysfs-class-rtc +++ b/Documentation/ABI/testing/sysfs-class-rtc @@ -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 |