Home
last modified time | relevance | path

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

/linux/drivers/thermal/
H A Dthermal-generic-adc.c26 static int gadc_thermal_adc_to_temp(struct gadc_thermal_info *gti, int val) in gadc_thermal_adc_to_temp() argument
31 if (!gti->lookup_table) in gadc_thermal_adc_to_temp()
34 for (i = 0; i < gti->nlookup_table; i++) { in gadc_thermal_adc_to_temp()
35 if (val >= gti->lookup_table[2 * i + 1]) in gadc_thermal_adc_to_temp()
40 temp = gti->lookup_table[0]; in gadc_thermal_adc_to_temp()
41 } else if (i >= gti->nlookup_table) { in gadc_thermal_adc_to_temp()
42 temp = gti->lookup_table[2 * (gti->nlookup_table - 1)]; in gadc_thermal_adc_to_temp()
44 adc_hi = gti->lookup_table[2 * i - 1]; in gadc_thermal_adc_to_temp()
45 adc_lo = gti->lookup_table[2 * i + 1]; in gadc_thermal_adc_to_temp()
47 temp_hi = gti->lookup_table[2 * i - 2]; in gadc_thermal_adc_to_temp()
[all …]