Commit 86c54ef6 authored by Alexandre Belloni's avatar Alexandre Belloni

rtc: rx8581: add RTC range

The rx8581 can support dates from 01/01/2000 to 31/12/2099.
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent b8157168
......@@ -291,6 +291,8 @@ static int rx8581_probe(struct i2c_client *client,
return PTR_ERR(rx8581->rtc);
rx8581->rtc->ops = &rx8581_rtc_ops;
rx8581->rtc->range_min = RTC_TIMESTAMP_BEGIN_2000;
rx8581->rtc->range_max = RTC_TIMESTAMP_END_2099;
return rtc_register_device(rx8581->rtc);
}
......
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