Searched refs:diode_offset (Results 1 – 1 of 1) sorted by relevance
521 int rawval, diode_slope, diode_offset; in ad7417_diode_read() local538 diode_offset = (int16_t)(eeprom[1][0x11] & 0xffff) << 12; in ad7417_diode_read()541 diode_offset = (int16_t)(eeprom[0][0x11] & 0xffff) << 12; in ad7417_diode_read()544 temp = (rawval*diode_slope + diode_offset) >> 2; in ad7417_diode_read()