Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/thermal/
Dthermal-generic-adc.c24 static int gadc_thermal_adc_to_temp(struct gadc_thermal_info *gti, int val) in gadc_thermal_adc_to_temp() argument
29 if (!gti->lookup_table) in gadc_thermal_adc_to_temp()
32 for (i = 0; i < gti->nlookup_table; i++) { in gadc_thermal_adc_to_temp()
33 if (val >= gti->lookup_table[2 * i + 1]) in gadc_thermal_adc_to_temp()
38 temp = gti->lookup_table[0]; in gadc_thermal_adc_to_temp()
39 } else if (i >= gti->nlookup_table) { in gadc_thermal_adc_to_temp()
40 temp = gti->lookup_table[2 * (gti->nlookup_table - 1)]; in gadc_thermal_adc_to_temp()
42 adc_hi = gti->lookup_table[2 * i - 1]; in gadc_thermal_adc_to_temp()
43 adc_lo = gti->lookup_table[2 * i + 1]; in gadc_thermal_adc_to_temp()
45 temp_hi = gti->lookup_table[2 * i - 2]; in gadc_thermal_adc_to_temp()
[all …]