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

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

index cb18a11..843fcbf 100644 (file)
@@ -646,6 +646,7 @@ static int ds1374_probe(struct i2c_client *client,
        }
 
        ds1374->rtc->ops = &ds1374_rtc_ops;
+       ds1374->rtc->range_max = U32_MAX;
 
        ret = rtc_register_device(ds1374->rtc);
        if (ret)