Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/rtc/
Drtc-isl1208.c49 #define ISL1208_REG_SCA 0x0c macro
324 sr = isl1208_i2c_read_regs(client, ISL1208_REG_SCA, regs, in isl1208_i2c_read_alarm()
333 tm->tm_sec = bcd2bin(regs[ISL1208_REG_SCA - ISL1208_REG_SCA] & 0x7f); in isl1208_i2c_read_alarm()
334 tm->tm_min = bcd2bin(regs[ISL1208_REG_MNA - ISL1208_REG_SCA] & 0x7f); in isl1208_i2c_read_alarm()
335 tm->tm_hour = bcd2bin(regs[ISL1208_REG_HRA - ISL1208_REG_SCA] & 0x3f); in isl1208_i2c_read_alarm()
336 tm->tm_mday = bcd2bin(regs[ISL1208_REG_DTA - ISL1208_REG_SCA] & 0x3f); in isl1208_i2c_read_alarm()
338 bcd2bin(regs[ISL1208_REG_MOA - ISL1208_REG_SCA] & 0x1f) - 1; in isl1208_i2c_read_alarm()
339 tm->tm_wday = bcd2bin(regs[ISL1208_REG_DWA - ISL1208_REG_SCA] & 0x03); in isl1208_i2c_read_alarm()
364 const int offs = ISL1208_REG_SCA; in isl1208_i2c_set_alarm()
386 regs[ISL1208_REG_SCA - offs] = bin2bcd(alarm_tm->tm_sec) | enable; in isl1208_i2c_set_alarm()