rtc: tps65910: add range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 17 May 2018 20:26:23 +0000 (22:26 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 17 May 2018 20:37:11 +0000 (22:37 +0200)
The tps65910 RTC can support dates from 01/01/2000 to 31/12/2099.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-tps65910.c

index 819d2d0..a9bbd02 100644 (file)
@@ -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) {