Home
last modified time | relevance | path

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

/linux-4.19.296/drivers/iio/adc/
Dqcom-vadc-common.c95 static void qcom_vadc_scale_calib(const struct vadc_linear_graph *calib_graph, in qcom_vadc_scale_calib() argument
100 *scale_voltage = (adc_code - calib_graph->gnd); in qcom_vadc_scale_calib()
101 *scale_voltage *= calib_graph->dx; in qcom_vadc_scale_calib()
102 *scale_voltage = div64_s64(*scale_voltage, calib_graph->dy); in qcom_vadc_scale_calib()
104 *scale_voltage += calib_graph->dx; in qcom_vadc_scale_calib()
110 static int qcom_vadc_scale_volt(const struct vadc_linear_graph *calib_graph, in qcom_vadc_scale_volt() argument
117 qcom_vadc_scale_calib(calib_graph, adc_code, absolute, &voltage); in qcom_vadc_scale_volt()
126 static int qcom_vadc_scale_therm(const struct vadc_linear_graph *calib_graph, in qcom_vadc_scale_therm() argument
134 qcom_vadc_scale_calib(calib_graph, adc_code, absolute, &voltage); in qcom_vadc_scale_therm()
151 static int qcom_vadc_scale_die_temp(const struct vadc_linear_graph *calib_graph, in qcom_vadc_scale_die_temp() argument
[all …]
Dqcom-vadc-common.h102 const struct vadc_linear_graph *calib_graph,