[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240227231356.1840523-1-alexandre.belloni@bootlin.com>
Date: Wed, 28 Feb 2024 00:13:54 +0100
From: alexandre.belloni@...tlin.com
To: Alexandre Belloni <alexandre.belloni@...tlin.com>
Cc: linux-rtc@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/2] rtc: ds1511: set range
From: Alexandre Belloni <alexandre.belloni@...tlin.com>
The ds1511 leap year calculation fails in 2100.
Signed-off-by: Alexandre Belloni <alexandre.belloni@...tlin.com>
---
drivers/rtc/rtc-ds1511.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/rtc/rtc-ds1511.c b/drivers/rtc/rtc-ds1511.c
index edb8d90812c5..6869d28d34cc 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,
--
2.43.0
Powered by blists - more mailing lists