]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
rtc: sprd: Add RTC hardware range
authorBaolin Wang <baolin.wang@linaro.org>
Thu, 26 Apr 2018 02:58:45 +0000 (10:58 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 3 May 2018 20:11:50 +0000 (22:11 +0200)
The SC27xx RTC can support dates from 1970-01-01 00:00:00 to 2149-06-06
23:59:59.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-sc27xx.c

index ac86322c72bc5aac11fc04320ffd41bcbe7c4ada..6a3876edd8e0a3bb6e492e6887074f643130016c 100644 (file)
@@ -631,6 +631,8 @@ static int sprd_rtc_probe(struct platform_device *pdev)
        }
 
        rtc->rtc->ops = &sprd_rtc_ops;
+       rtc->rtc->range_min = 0;
+       rtc->rtc->range_max = 5662310399LL;
        ret = rtc_register_device(rtc->rtc);
        if (ret) {
                dev_err(&pdev->dev, "failed to register rtc device\n");