Lines Matching refs:temppoints
75 static const struct sht15_temppair temppoints[] = {
618 int d1 = temppoints[0].d1;
622 for (i = ARRAY_SIZE(temppoints) - 1; i > 0; i--)
624 if (data->supply_uv > temppoints[i - 1].vdd) {
625 d1 = (data->supply_uv - temppoints[i - 1].vdd)
626 * (temppoints[i].d1 - temppoints[i - 1].d1)
627 / (temppoints[i].vdd - temppoints[i - 1].vdd)
628 + temppoints[i - 1].d1;