aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-pcf85363.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-10 22:56:01 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-11 16:42:55 +0200
commitc0ec8319cc41c69dfb34493de4fb712eaebdf806 (patch)
treed3c747a231af8003e68b7806d84247cd6079a9c7 /drivers/rtc/rtc-pcf85363.c
parent8f7b1d718a43d4c407facffb48d8bf63de12fe40 (diff)
downloadlinux-c0ec8319cc41c69dfb34493de4fb712eaebdf806.tar.gz
rtc: pcf85363: set range
This is a standard BCD RTC that will fail in 2100. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-pcf85363.c')
-rw-r--r--drivers/rtc/rtc-pcf85363.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-pcf85363.c b/drivers/rtc/rtc-pcf85363.c
index 3905c0ad9d836..8d538a253d727 100644
--- a/drivers/rtc/rtc-pcf85363.c
+++ b/drivers/rtc/rtc-pcf85363.c
@@ -406,6 +406,8 @@ static int pcf85363_probe(struct i2c_client *client,
return PTR_ERR(pcf85363->rtc);
pcf85363->rtc->ops = &rtc_ops;
+ pcf85363->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000;
+ pcf85363->rtc->range_max = RTC_TIMESTAMP_END_2099;
if (client->irq > 0) {
regmap_write(pcf85363->regmap, CTRL_FLAGS, 0);