Searched refs:ISL12057_REG_RTC_HR (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/rtc/
H A Drtc-isl12057.c38 #define ISL12057_REG_RTC_HR 0x02 /* Hours */ macro
93 if (regs[ISL12057_REG_RTC_HR] & ISL12057_REG_RTC_HR_MIL) { /* AM/PM */ isl12057_rtc_regs_to_tm()
94 tm->tm_hour = bcd2bin(regs[ISL12057_REG_RTC_HR] & 0x1f); isl12057_rtc_regs_to_tm()
95 if (regs[ISL12057_REG_RTC_HR] & ISL12057_REG_RTC_HR_PM) isl12057_rtc_regs_to_tm()
98 tm->tm_hour = bcd2bin(regs[ISL12057_REG_RTC_HR] & 0x3f); isl12057_rtc_regs_to_tm()
130 regs[ISL12057_REG_RTC_HR] = bin2bcd(tm->tm_hour); /* 24-hour format */ isl12057_rtc_tm_to_regs()

Completed in 31 milliseconds