summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-10-16 23:08:48 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-10-19 23:33:05 +0300
commit9e8a968fe3608b3b00aa3002207f48f0de50823b (patch)
treebd71847307739de3facbfee3e2c711e36b9b07b0
parented6c6dfdbe475271f769603ae22246b3e2c8c7b3 (diff)
downloadlinux-9e8a968fe3608b3b00aa3002207f48f0de50823b.tar.xz
rtc: s35390a: set range
This is a standard BCD RTC that will fail in 2100. Link: https://lore.kernel.org/r/20191016200848.30246-2-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r--drivers/rtc/rtc-s35390a.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-s35390a.c b/drivers/rtc/rtc-s35390a.c
index 66684b80028f..03672a246356 100644
--- a/drivers/rtc/rtc-s35390a.c
+++ b/drivers/rtc/rtc-s35390a.c
@@ -488,6 +488,8 @@ static int s35390a_probe(struct i2c_client *client,
device_set_wakeup_capable(dev, 1);
s35390a->rtc->ops = &s35390a_rtc_ops;
+ s35390a->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000;
+ s35390a->rtc->range_max = RTC_TIMESTAMP_END_2099;
/* supports per-minute alarms only, therefore set uie_unsupported */
s35390a->rtc->uie_unsupported = 1;