Home
last modified time | relevance | path

Searched refs:year_offset (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/rtc/
H A Drtc-pcf8583.c181 int real_year, year_offset, err; in pcf8583_rtc_read_time() local
210 year_offset = tm->tm_year - (real_year & 3); in pcf8583_rtc_read_time()
211 if (year_offset < 0) in pcf8583_rtc_read_time()
215 year_offset += 4; in pcf8583_rtc_read_time()
217 tm->tm_year = (real_year + year_offset + year[1] * 100) - 1900; in pcf8583_rtc_read_time()