Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/iio/humidity/
Dhts221_core.c261 s16 cal_x0, cal_x1, cal_y0, cal_y1; in hts221_parse_temp_caldata() local
282 cal_x0 = le16_to_cpu(val); in hts221_parse_temp_caldata()
293 *slope = ((cal_y1 - cal_y0) * 8000) / (cal_x1 - cal_x0); in hts221_parse_temp_caldata()
294 *b_gen = (((s32)cal_x1 * cal_y0 - (s32)cal_x0 * cal_y1) * 1000) / in hts221_parse_temp_caldata()
295 (cal_x1 - cal_x0); in hts221_parse_temp_caldata()
304 s16 cal_x0, cal_x1, cal_y0, cal_y1; in hts221_parse_rh_caldata() local
321 cal_x0 = le16_to_cpu(val); in hts221_parse_rh_caldata()
332 *slope = ((cal_y1 - cal_y0) * 8000) / (cal_x1 - cal_x0); in hts221_parse_rh_caldata()
333 *b_gen = (((s32)cal_x1 * cal_y0 - (s32)cal_x0 * cal_y1) * 1000) / in hts221_parse_rh_caldata()
334 (cal_x1 - cal_x0); in hts221_parse_rh_caldata()