Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 57ad9e69 authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

rtc: tps65910: add range



The tps65910 RTC can support dates from 01/01/2000 to 31/12/2099.

Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent ee366c7a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -426,6 +426,8 @@ static int tps65910_rtc_probe(struct platform_device *pdev)
	device_set_wakeup_capable(&pdev->dev, 1);

	tps_rtc->rtc->ops = &tps65910_rtc_ops;
	tps_rtc->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000;
	tps_rtc->rtc->range_max = RTC_TIMESTAMP_END_2099;

	ret = rtc_register_device(tps_rtc->rtc);
	if (ret) {