rtc: digicolor: set range
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 30 Apr 2019 09:32:10 +0000 (11:32 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 8 May 2019 20:14:23 +0000 (22:14 +0200)
While the range of REFERENCE + TIME is actually 33 bits, the counter
itself (TIME) is a 32-bits seconds counter.

Acked-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-digicolor.c

index 5bb14c56bc9a097fb67f82fdfc13a0ca33ac4132..e6e16aaac25406442b622ae65882f710dce5bb78 100644 (file)
@@ -206,6 +206,7 @@ static int __init dc_rtc_probe(struct platform_device *pdev)
        platform_set_drvdata(pdev, rtc);
 
        rtc->rtc_dev->ops = &dc_rtc_ops;
+       rtc->rtc_dev->range_max = U32_MAX;
 
        return rtc_register_device(rtc->rtc_dev);
 }