rtc: pm8xxx: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 6 Mar 2020 07:37:56 +0000 (08:37 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 16 Mar 2020 10:12:10 +0000 (11:12 +0100)
The pm8xxx are 32bit seconds counter.

Link: https://lore.kernel.org/r/20200306073758.58050-2-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-pm8xxx.c

index b97333c95e53a930fb836447846447f13e35f404..71bd56d32c90e7773e4de88f85df281a452c109b 100644 (file)
@@ -491,6 +491,7 @@ static int pm8xxx_rtc_probe(struct platform_device *pdev)
                return PTR_ERR(rtc_dd->rtc);
 
        rtc_dd->rtc->ops = &pm8xxx_rtc_ops;
+       rtc_dd->rtc->range_max = U32_MAX;
 
        /* Request the alarm IRQ */
        rc = devm_request_any_context_irq(&pdev->dev, rtc_dd->rtc_alarm_irq,