Home
last modified time | relevance | path

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

/openbmc/linux/drivers/hwmon/
H A Dsht15.c75 static const struct sht15_temppair temppoints[] = { variable
618 int d1 = temppoints[0].d1; in sht15_calc_temp()
622 for (i = ARRAY_SIZE(temppoints) - 1; i > 0; i--) in sht15_calc_temp()
624 if (data->supply_uv > temppoints[i - 1].vdd) { in sht15_calc_temp()
625 d1 = (data->supply_uv - temppoints[i - 1].vdd) in sht15_calc_temp()
626 * (temppoints[i].d1 - temppoints[i - 1].d1) in sht15_calc_temp()
627 / (temppoints[i].vdd - temppoints[i - 1].vdd) in sht15_calc_temp()
628 + temppoints[i - 1].d1; in sht15_calc_temp()