Răsfoiți Sursa

rtc: mrst: remove artificial limitation

The hardware supports years up to 100 so don't limit the year to 2038
artificially.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Alexandre Belloni 7 ani în urmă
părinte
comite
f441f98f58
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      drivers/rtc/rtc-mrst.c

+ 1 - 1
drivers/rtc/rtc-mrst.c

@@ -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;