Lines Matching refs:M41T80_REG_SEC
36 #define M41T80_REG_SEC 1 macro
96 u8 buf[M41T80_DATETIME_REG_SIZE], dt_addr[1] = { M41T80_REG_SEC }; in m41t80_get_datetime()
107 .len = M41T80_DATETIME_REG_SIZE - M41T80_REG_SEC, in m41t80_get_datetime()
108 .buf = buf + M41T80_REG_SEC, in m41t80_get_datetime()
117 tm->tm_sec = bcd2bin(buf[M41T80_REG_SEC] & 0x7f); in m41t80_get_datetime()
134 u8 dt_addr[1] = { M41T80_REG_SEC }; in m41t80_set_datetime()
145 .len = M41T80_DATETIME_REG_SIZE - M41T80_REG_SEC, in m41t80_set_datetime()
146 .buf = buf + M41T80_REG_SEC, in m41t80_set_datetime()
167 buf[M41T80_REG_SEC] = in m41t80_set_datetime()
168 bin2bcd(tm->tm_sec) | (buf[M41T80_REG_SEC] & ~0x7f); in m41t80_set_datetime()
684 rc = i2c_smbus_read_byte_data(client, M41T80_REG_SEC); in m41t80_probe()
687 rc = i2c_smbus_write_byte_data(client, M41T80_REG_SEC, in m41t80_probe()