aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/rtc/rtc-mrst.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-mrst.c b/drivers/rtc/rtc-mrst.c
index 67b6be2b874d..bcd0cf63eb16 100644
--- a/drivers/rtc/rtc-mrst.c
+++ b/drivers/rtc/rtc-mrst.c
@@ -66,7 +66,11 @@ static inline int is_intr(u8 rtc_intr)
66 * rtc_time's year contains the increment over 1900, but vRTC's YEAR 66 * rtc_time's year contains the increment over 1900, but vRTC's YEAR
67 * register can't be programmed to value larger than 0x64, so vRTC 67 * register can't be programmed to value larger than 0x64, so vRTC
68 * driver chose to use 1960 (1970 is UNIX time start point) as the base, 68 * driver chose to use 1960 (1970 is UNIX time start point) as the base,
69 * and does the translation at read/write time 69 * and does the translation at read/write time.
70 *
71 * Why not just use 1970 as the offset? it's because using 1960 will
72 * make it consistent in leap year setting for both vrtc and low-level
73 * physical rtc devices.
70 */ 74 */
71static int mrst_read_time(struct device *dev, struct rtc_time *time) 75static int mrst_read_time(struct device *dev, struct rtc_time *time)
72{ 76{