aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-ds1511.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2024-02-28 00:13:54 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2024-02-29 22:16:52 +0100
commite40512a4f5cbfbbe034efc2d556283a470f97bf5 (patch)
treeb0b7a565f7985cb8878055b81a8a071a5b249fc5 /drivers/rtc/rtc-ds1511.c
parent29c411f242ea3873c65efa95cfd3780b4b16f278 (diff)
downloadlinux-e40512a4f5cbfbbe034efc2d556283a470f97bf5.tar.gz
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>
Diffstat (limited to 'drivers/rtc/rtc-ds1511.c')
-rw-r--r--drivers/rtc/rtc-ds1511.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c
index edb8d90812c58..6869d28d34cc9 100644
--- a/drivers/rtc/rtc-ds1511.c
+++ b/drivers/rtc/rtc-ds1511.c
@@ -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,