Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/hwmon/
Dsht15.c78 static const struct sht15_temppair temppoints[] = { variable
621 int d1 = temppoints[0].d1; in sht15_calc_temp()
625 for (i = ARRAY_SIZE(temppoints) - 1; i > 0; i--) in sht15_calc_temp()
627 if (data->supply_uv > temppoints[i - 1].vdd) { in sht15_calc_temp()
628 d1 = (data->supply_uv - temppoints[i - 1].vdd) in sht15_calc_temp()
629 * (temppoints[i].d1 - temppoints[i - 1].d1) in sht15_calc_temp()
630 / (temppoints[i].vdd - temppoints[i - 1].vdd) in sht15_calc_temp()
631 + temppoints[i - 1].d1; in sht15_calc_temp()