Loading drivers/rtc/rtc-cpcap.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -56,14 +56,14 @@ static void cpcap2rtc_time(struct rtc_time *rtc, struct cpcap_time *cpcap) tod = (cpcap->tod1 & TOD1_MASK) | ((cpcap->tod2 & TOD2_MASK) << 8); tod = (cpcap->tod1 & TOD1_MASK) | ((cpcap->tod2 & TOD2_MASK) << 8); time = tod + ((cpcap->day & DAY_MASK) * SECS_PER_DAY); time = tod + ((cpcap->day & DAY_MASK) * SECS_PER_DAY); rtc_time_to_tm(time, rtc); rtc_time64_to_tm(time, rtc); } } static void rtc2cpcap_time(struct cpcap_time *cpcap, struct rtc_time *rtc) static void rtc2cpcap_time(struct cpcap_time *cpcap, struct rtc_time *rtc) { { unsigned long time; unsigned long time; rtc_tm_to_time(rtc, &time); time = rtc_tm_to_time64(rtc); cpcap->day = time / SECS_PER_DAY; cpcap->day = time / SECS_PER_DAY; time %= SECS_PER_DAY; time %= SECS_PER_DAY; Loading Loading
drivers/rtc/rtc-cpcap.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -56,14 +56,14 @@ static void cpcap2rtc_time(struct rtc_time *rtc, struct cpcap_time *cpcap) tod = (cpcap->tod1 & TOD1_MASK) | ((cpcap->tod2 & TOD2_MASK) << 8); tod = (cpcap->tod1 & TOD1_MASK) | ((cpcap->tod2 & TOD2_MASK) << 8); time = tod + ((cpcap->day & DAY_MASK) * SECS_PER_DAY); time = tod + ((cpcap->day & DAY_MASK) * SECS_PER_DAY); rtc_time_to_tm(time, rtc); rtc_time64_to_tm(time, rtc); } } static void rtc2cpcap_time(struct cpcap_time *cpcap, struct rtc_time *rtc) static void rtc2cpcap_time(struct cpcap_time *cpcap, struct rtc_time *rtc) { { unsigned long time; unsigned long time; rtc_tm_to_time(rtc, &time); time = rtc_tm_to_time64(rtc); cpcap->day = time / SECS_PER_DAY; cpcap->day = time / SECS_PER_DAY; time %= SECS_PER_DAY; time %= SECS_PER_DAY; Loading