Lines Matching refs:thermistor_curve
428 if (tval > info->pdata->thermistor_curve[0][1]) { in temp_to_adc()
429 rntc = info->pdata->thermistor_curve[0][0]; in temp_to_adc()
430 } else if (tval <= info->pdata->thermistor_curve[tcsz-1][1]) { in temp_to_adc()
431 rntc = info->pdata->thermistor_curve[tcsz-1][0]; in temp_to_adc()
434 if (tval > info->pdata->thermistor_curve[i][1]) { in temp_to_adc()
435 rmin = info->pdata->thermistor_curve[i-1][0]; in temp_to_adc()
436 rmax = info->pdata->thermistor_curve[i][0]; in temp_to_adc()
437 tmin = info->pdata->thermistor_curve[i-1][1]; in temp_to_adc()
438 tmax = info->pdata->thermistor_curve[i][1]; in temp_to_adc()
482 if (r < info->pdata->thermistor_curve[0][0]) { in adc_to_temp()
483 tval = info->pdata->thermistor_curve[0][1]; in adc_to_temp()
484 } else if (r >= info->pdata->thermistor_curve[tcsz-1][0]) { in adc_to_temp()
485 tval = info->pdata->thermistor_curve[tcsz-1][1]; in adc_to_temp()
488 if (r < info->pdata->thermistor_curve[i][0]) { in adc_to_temp()
489 rmin = info->pdata->thermistor_curve[i-1][0]; in adc_to_temp()
490 rmax = info->pdata->thermistor_curve[i][0]; in adc_to_temp()
491 tmin = info->pdata->thermistor_curve[i-1][1]; in adc_to_temp()
492 tmax = info->pdata->thermistor_curve[i][1]; in adc_to_temp()