Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/rtc/
Drtc-isl1208.c47 #define ISL1208_REG_SCA 0x0c macro
358 sr = isl1208_i2c_read_regs(client, ISL1208_REG_SCA, regs, in isl1208_i2c_read_alarm()
367 tm->tm_sec = bcd2bin(regs[ISL1208_REG_SCA - ISL1208_REG_SCA] & 0x7f); in isl1208_i2c_read_alarm()
368 tm->tm_min = bcd2bin(regs[ISL1208_REG_MNA - ISL1208_REG_SCA] & 0x7f); in isl1208_i2c_read_alarm()
369 tm->tm_hour = bcd2bin(regs[ISL1208_REG_HRA - ISL1208_REG_SCA] & 0x3f); in isl1208_i2c_read_alarm()
370 tm->tm_mday = bcd2bin(regs[ISL1208_REG_DTA - ISL1208_REG_SCA] & 0x3f); in isl1208_i2c_read_alarm()
372 bcd2bin(regs[ISL1208_REG_MOA - ISL1208_REG_SCA] & 0x1f) - 1; in isl1208_i2c_read_alarm()
373 tm->tm_wday = bcd2bin(regs[ISL1208_REG_DWA - ISL1208_REG_SCA] & 0x03); in isl1208_i2c_read_alarm()
398 const int offs = ISL1208_REG_SCA; in isl1208_i2c_set_alarm()
413 regs[ISL1208_REG_SCA - offs] = bin2bcd(alarm_tm->tm_sec) | enable; in isl1208_i2c_set_alarm()