diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-03-06 08:35:46 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2020-04-01 12:33:43 +0200 |
commit | 23af616ca4da8af1ee92362d20abbb5e87b9ed88 (patch) | |
tree | 481f0111ca3558e8ea96419d7644af518411c0fd | |
parent | d17077e570b21276dd6f49c89b03348c6be8f54f (diff) | |
download | linux-23af616ca4da8af1ee92362d20abbb5e87b9ed88.tar.bz2 |
rtc: da9052: set range
The da9052 is an rtc valid from 2000 to 2063 (max year is 63).
Acked-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Link: https://lore.kernel.org/r/20200306073548.57579-2-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
-rw-r--r-- | drivers/rtc/rtc-da9052.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-da9052.c b/drivers/rtc/rtc-da9052.c index e76561b8ad4c..39b909d24cc6 100644 --- a/drivers/rtc/rtc-da9052.c +++ b/drivers/rtc/rtc-da9052.c @@ -303,6 +303,8 @@ static int da9052_rtc_probe(struct platform_device *pdev) return PTR_ERR(rtc->rtc); rtc->rtc->ops = &da9052_rtc_ops; + rtc->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000; + rtc->rtc->range_max = RTC_TIMESTAMP_END_2063; ret = rtc_register_device(rtc->rtc); if (ret) |