Skip to contentSkip to conversation

rtc: at91rm9200: add range

PATCH New Alexandre Belloni 1 participant 1 message May 17, 2018

Subsystems (2)
lore
Share & tools
lore

Alexandre Belloni

author maintainer
#0 lore raw

PATCH 1/1 rtc: at91rm9200: add range

The at91rm9200 RTC can support dates from 1900-01-01 00:00:00 to 2099-12-31 23:59:59.

---
 drivers/rtc/rtc-at91rm9200.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/rtc/rtc-at91rm9200.c +2 -0
index de81ecedd571..caa71d04e989 100644
@@ -440,6 +440,8 @@ static int __init at91_rtc_probe(struct platform_device *pdev)
 		device_init_wakeup(&pdev->dev, 1);
 
 	rtc->ops = &at91_rtc_ops;
+	rtc->range_min = RTC_TIMESTAMP_BEGIN_1900;
+	rtc->range_max = RTC_TIMESTAMP_END_2099;
 	ret = rtc_register_device(rtc);
 	if (ret)
 		goto err_clk;
Signature · 1 line
2.17.0