Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/hwmon/
Dab8500.c59 int r_ntc, i = 0, tbl_sz = cfg->tbl_sz; in ab8500_voltage_to_temp() local
65 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()