Home
last modified time | relevance | path

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

/openbmc/linux/drivers/rtc/
H A Drtc-pcf8523.c359 long reg_m0, reg_m1; in pcf8523_rtc_set_offset() local
363 reg_m1 = clamp(DIV_ROUND_CLOSEST(offset, 4069), -64L, 63L); in pcf8523_rtc_set_offset()
365 if (abs(reg_m0 * 4340 - offset) < abs(reg_m1 * 4069 - offset)) in pcf8523_rtc_set_offset()
368 value = (reg_m1 & 0x7f) | PCF8523_OFFSET_MODE; in pcf8523_rtc_set_offset()