Searched refs:r_ntc (Results 1 – 1 of 1) sorted by relevance
59 int r_ntc, i = 0, tbl_sz = cfg->tbl_sz; in ab8500_voltage_to_temp() local65 r_ntc = v_ntc * cfg->r_up / (cfg->vcc - v_ntc); in ab8500_voltage_to_temp()66 if (r_ntc > tbl[0].resist || r_ntc < tbl[tbl_sz - 1].resist) in ab8500_voltage_to_temp()69 while (!(r_ntc <= tbl[i].resist && r_ntc > tbl[i + 1].resist) && in ab8500_voltage_to_temp()75 (r_ntc - tbl[i].resist)) / (tbl[i + 1].resist - tbl[i].resist); in ab8500_voltage_to_temp()