Commit f441f98f authored by Alexandre Belloni's avatar Alexandre Belloni

rtc: mrst: remove artificial limitation

The hardware supports years up to 100 so don't limit the year to 2038
artificially.
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 844cba65
...@@ -122,7 +122,7 @@ static int mrst_set_time(struct device *dev, struct rtc_time *time) ...@@ -122,7 +122,7 @@ static int mrst_set_time(struct device *dev, struct rtc_time *time)
min = time->tm_min; min = time->tm_min;
sec = time->tm_sec; sec = time->tm_sec;
if (yrs < 72 || yrs > 138) if (yrs < 72 || yrs > 172)
return -EINVAL; return -EINVAL;
yrs -= 72; yrs -= 72;
......
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