D | qcom-vadc-common.c | 13 /* Voltage to temperature */ 52 * Voltage to temperature table for 100k pull up for NTCG104EF104 with 388 s64 voltage = 0, result = 0; in qcom_vadc_scale_volt() local 390 qcom_vadc_scale_calib(calib_graph, adc_code, absolute, &voltage); in qcom_vadc_scale_volt() 392 voltage = voltage * prescale->den; in qcom_vadc_scale_volt() 393 result = div64_s64(voltage, prescale->num); in qcom_vadc_scale_volt() 404 s64 voltage = 0; in qcom_vadc_scale_therm() local 407 qcom_vadc_scale_calib(calib_graph, adc_code, absolute, &voltage); in qcom_vadc_scale_therm() 410 voltage = div64_s64(voltage, 1000); in qcom_vadc_scale_therm() 414 voltage, result_mdec); in qcom_vadc_scale_therm() [all …]
|