Commit 9e8a968f authored by Alexandre Belloni's avatar Alexandre Belloni

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.comSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent ed6c6dfd
...@@ -488,6 +488,8 @@ static int s35390a_probe(struct i2c_client *client, ...@@ -488,6 +488,8 @@ static int s35390a_probe(struct i2c_client *client,
device_set_wakeup_capable(dev, 1); device_set_wakeup_capable(dev, 1);
s35390a->rtc->ops = &s35390a_rtc_ops; 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 */ /* supports per-minute alarms only, therefore set uie_unsupported */
s35390a->rtc->uie_unsupported = 1; s35390a->rtc->uie_unsupported = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment