Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/rtc/
Drtc-tps80031.c60 #define RTC_YEAR_OFFSET 100 macro
84 tm->tm_year = bcd2bin(buff[5]) + RTC_YEAR_OFFSET; in tps80031_rtc_read_time()
99 buff[5] = bin2bcd(tm->tm_year % RTC_YEAR_OFFSET); in tps80031_rtc_set_time()
153 buff[5] = bin2bcd(alrm->time.tm_year % RTC_YEAR_OFFSET); in tps80031_rtc_set_alarm()
183 alrm->time.tm_year = bcd2bin(buff[5]) + RTC_YEAR_OFFSET; in tps80031_rtc_read_alarm()
259 if ((tm.tm_year == RTC_YEAR_OFFSET + TPS80031_RTC_POR_YEAR) && in tps80031_rtc_probe()