Searched refs:temppoints (Results 1 – 1 of 1) sorted by relevance
77 static const struct sht15_temppair temppoints[] = { variable630 int d1 = temppoints[0].d1; in sht15_calc_temp()634 for (i = ARRAY_SIZE(temppoints) - 1; i > 0; i--) in sht15_calc_temp()636 if (data->supply_uv > temppoints[i - 1].vdd) { in sht15_calc_temp()637 d1 = (data->supply_uv - temppoints[i - 1].vdd) in sht15_calc_temp()638 * (temppoints[i].d1 - temppoints[i - 1].d1) in sht15_calc_temp()639 / (temppoints[i].vdd - temppoints[i - 1].vdd) in sht15_calc_temp()640 + temppoints[i - 1].d1; in sht15_calc_temp()