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