Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1
+1
drivers/rtc/rtc-ds1511.c
··· 322 322 return PTR_ERR(ds1511->rtc); 323 323 324 324 ds1511->rtc->ops = &ds1511_rtc_ops; 325 + ds1511->rtc->range_max = RTC_TIMESTAMP_END_2099; 325 326 326 327 /* 327 328 * if the platform has an interrupt in mind for this device,