Commit c0ec8319 authored by Alexandre Belloni's avatar Alexandre Belloni

rtc: pcf85363: set range

This is a standard BCD RTC that will fail in 2100.
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 8f7b1d71
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment