Commit 23af616c authored by Alexandre Belloni's avatar Alexandre Belloni

rtc: da9052: set range

The da9052 is an rtc valid from 2000 to 2063 (max year is 63).
Acked-by: default avatarAdam Thomson <Adam.Thomson.Opensource@diasemi.com>
Link: https://lore.kernel.org/r/20200306073548.57579-2-alexandre.belloni@bootlin.comSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent d17077e5
...@@ -303,6 +303,8 @@ static int da9052_rtc_probe(struct platform_device *pdev) ...@@ -303,6 +303,8 @@ static int da9052_rtc_probe(struct platform_device *pdev)
return PTR_ERR(rtc->rtc); return PTR_ERR(rtc->rtc);
rtc->rtc->ops = &da9052_rtc_ops; rtc->rtc->ops = &da9052_rtc_ops;
rtc->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000;
rtc->rtc->range_max = RTC_TIMESTAMP_END_2063;
ret = rtc_register_device(rtc->rtc); ret = rtc_register_device(rtc->rtc);
if (ret) if (ret)
......
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