Home
last modified time | relevance | path

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

/linux/drivers/thermal/renesas/
H A Drzg2l_thermal.c62 u32 calib0, calib1; member
109 val = ((dsensor - priv->calib1) * (MCELSIUS(165) / in rzg2l_thermal_get_temp()
110 (priv->calib0 - priv->calib1))) - MCELSIUS(40); in rzg2l_thermal_get_temp()
195 priv->calib1 = rzg2l_thermal_read(priv, OTPTSUTRIM_REG(1)); in rzg2l_thermal_probe()
196 if (priv->calib1 & OTPTSUTRIM_EN_MASK) in rzg2l_thermal_probe()
197 priv->calib1 &= OTPTSUTRIM_MASK; in rzg2l_thermal_probe()
199 priv->calib1 = SW_CALIB1_VAL; in rzg2l_thermal_probe()
/linux/drivers/iio/light/
H A Dtsl2563.c115 u32 calib1; member
461 chip->calib1 = tsl2563_calib_from_sysfs(val); in tsl2563_write_raw()
475 u32 calib0, calib1; in tsl2563_read_raw() local
489 calib1 = tsl2563_calib_adc(chip->data1, chip->calib1) * in tsl2563_read_raw()
491 *val = tsl2563_adc_to_lux(calib0, calib1); in tsl2563_read_raw()
513 *val = tsl2563_calib_to_sysfs(chip->calib1); in tsl2563_read_raw()
729 chip->calib1 = tsl2563_calib_from_sysfs(CALIB_BASE_SYSFS); in tsl2563_probe()