Searched refs:RV3029C2_W_SEC (Results 1 – 1 of 1) sorted by relevance
39 #define RV3029C2_W_SEC 0x08 macro154 ret = rv3029c2_i2c_read_regs(client, RV3029C2_W_SEC , regs, in rv3029c2_i2c_read_time()162 tm->tm_sec = bcd2bin(regs[RV3029C2_W_SEC-RV3029C2_W_SEC]); in rv3029c2_i2c_read_time()163 tm->tm_min = bcd2bin(regs[RV3029C2_W_MINUTES-RV3029C2_W_SEC]); in rv3029c2_i2c_read_time()167 const u8 _hr = regs[RV3029C2_W_HOURS-RV3029C2_W_SEC]; in rv3029c2_i2c_read_time()177 tm->tm_mday = bcd2bin(regs[RV3029C2_W_DATE-RV3029C2_W_SEC]); in rv3029c2_i2c_read_time()178 tm->tm_mon = bcd2bin(regs[RV3029C2_W_MONTHS-RV3029C2_W_SEC]) - 1; in rv3029c2_i2c_read_time()179 tm->tm_year = bcd2bin(regs[RV3029C2_W_YEARS-RV3029C2_W_SEC]) + 100; in rv3029c2_i2c_read_time()180 tm->tm_wday = bcd2bin(regs[RV3029C2_W_DAYS-RV3029C2_W_SEC]) - 1; in rv3029c2_i2c_read_time()342 regs[RV3029C2_W_SEC-RV3029C2_W_SEC] = bin2bcd(tm->tm_sec); in rv3029c2_i2c_set_time()[all …]