]> asedeno.scripts.mit.edu Git - linux.git/commit
rtc: Add RTC range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 17 Feb 2018 13:58:40 +0000 (14:58 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 17 Mar 2018 13:20:54 +0000 (14:20 +0100)
commit71db049e7355f31604e2c04b6cabb71d02bd487d
tree19743f8478631b847a11cf09690a6b4f28927e76
parent236b7187034e87bd46eb535ab4f276267ef66ee4
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>
Documentation/ABI/testing/sysfs-class-rtc
drivers/rtc/interface.c
drivers/rtc/rtc-sysfs.c
include/linux/rtc.h