Home
last modified time | relevance | path

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

/linux/drivers/thermal/
H A Dsprd_thermal.c79 int cal_slope; member
172 sen->cal_slope = (thm->var_data->ideal_k * ratio) / 1000; in sprd_thm_sensor_calibration()
188 return sen->cal_slope * rawdata - sen->cal_offset; in sprd_thm_rawdata_to_temp()
202 val = (temp + sen->cal_offset) / sen->cal_slope; in sprd_thm_temp_to_rawdata()