diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-08-28 22:50:55 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-09-01 08:48:15 +0200 |
commit | 79610340cac8840ad67572ca13afae03265edae6 (patch) | |
tree | 2994cfecda3119ae521e6c23cafad7fe49bcf2de /drivers/rtc | |
parent | 6fd4fe9b496d9ba3382992ff4fde3871d1b6f63d (diff) | |
download | linux-79610340cac8840ad67572ca13afae03265edae6.tar.gz linux-79610340cac8840ad67572ca13afae03265edae6.tar.bz2 linux-79610340cac8840ad67572ca13afae03265edae6.zip |
rtc: snvs: set range
The SNVS is a 47-bit counter incremented at 32768Hz, it is then a 32-bit
second counter.
Link: https://lore.kernel.org/r/20190828205056.31321-1-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-snvs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c index 4f9a107a0427..50dd4b8492eb 100644 --- a/drivers/rtc/rtc-snvs.c +++ b/drivers/rtc/rtc-snvs.c @@ -348,6 +348,7 @@ static int snvs_rtc_probe(struct platform_device *pdev) } data->rtc->ops = &snvs_rtc_ops; + data->rtc->range_max = U32_MAX; ret = rtc_register_device(data->rtc); if (ret) { dev_err(&pdev->dev, "failed to register rtc: %d\n", ret); |