Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()

Completed in 4 milliseconds