rtc: mrst: remove artificial limitation
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 10 Mar 2018 05:32:00 +0000 (06:32 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 27 Mar 2018 08:45:03 +0000 (10:45 +0200)
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>
drivers/rtc/rtc-mrst.c

index 901a8d1..fcb9de5 100644 (file)
@@ -122,7 +122,7 @@ static int mrst_set_time(struct device *dev, struct rtc_time *time)
        min = time->tm_min;
        sec = time->tm_sec;
 
-       if (yrs < 72 || yrs > 138)
+       if (yrs < 72 || yrs > 172)
                return -EINVAL;
        yrs -= 72;