Lines Matching refs:caldata
76 u16 *caldata, int callen);
201 u16 *caldata, int callen) in sun8i_h3_ths_calibrate() argument
205 if (!caldata[0] || callen < 2 * tmdev->chip->sensor_num) in sun8i_h3_ths_calibrate()
214 caldata[i] << offset); in sun8i_h3_ths_calibrate()
221 u16 *caldata, int callen) in sun50i_h6_ths_calibrate() argument
226 if (!caldata[0] || callen < 2 + 2 * tmdev->chip->sensor_num) in sun50i_h6_ths_calibrate()
245 ft_temp = (caldata[0] & FT_TEMP_MASK) * 100; in sun50i_h6_ths_calibrate()
248 int sensor_reg = caldata[i + 1] & TEMP_CALIB_MASK; in sun50i_h6_ths_calibrate()
285 u16 *caldata; in sun8i_ths_calibrate() local
309 caldata = nvmem_cell_read(calcell, &callen); in sun8i_ths_calibrate()
310 if (IS_ERR(caldata)) { in sun8i_ths_calibrate()
311 ret = PTR_ERR(caldata); in sun8i_ths_calibrate()
315 tmdev->chip->calibrate(tmdev, caldata, callen); in sun8i_ths_calibrate()
317 kfree(caldata); in sun8i_ths_calibrate()