rtc: da9052: set range
The da9052 is an rtc valid from 2000 to 2063 (max year is 63). Acked-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com> Link: https://lore.kernel.org/r/20200306073548.57579-2-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
d17077e570
commit
23af616ca4
|
@ -303,6 +303,8 @@ static int da9052_rtc_probe(struct platform_device *pdev)
|
|||
return PTR_ERR(rtc->rtc);
|
||||
|
||||
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);
|
||||
if (ret)
|
||||
|
|
Loading…
Reference in New Issue