mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 02:36:02 +00:00
rtc: ds1511: set range
The ds1511 leap year calculation fails in 2100. Link: https://lore.kernel.org/r/20240227231356.1840523-1-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
29c411f242
commit
e40512a4f5
@ -322,6 +322,7 @@ static int ds1511_rtc_probe(struct platform_device *pdev)
|
||||
return PTR_ERR(ds1511->rtc);
|
||||
|
||||
ds1511->rtc->ops = &ds1511_rtc_ops;
|
||||
ds1511->rtc->range_max = RTC_TIMESTAMP_END_2099;
|
||||
|
||||
/*
|
||||
* if the platform has an interrupt in mind for this device,
|
||||
|
Loading…
Reference in New Issue
Block a user