Lines Matching full:hyst
69 u8 hyst; /* hysteresis offset */ member
193 data->hyst = ret; in adt7x10_fill_cache()
268 int hyst; in adt7x10_t_hyst_show() local
270 hyst = (data->hyst & ADT7X10_T_HYST_MASK) * 1000; in adt7x10_t_hyst_show()
277 hyst = -hyst; in adt7x10_t_hyst_show()
279 ADT7X10_REG_TO_TEMP(data, data->temp[nr]) - hyst); in adt7x10_t_hyst_show()
288 long hyst; in adt7x10_t_hyst_store() local
290 ret = kstrtol(buf, 10, &hyst); in adt7x10_t_hyst_store()
295 hyst = clamp_val(hyst, ADT7X10_TEMP_MIN, ADT7X10_TEMP_MAX); in adt7x10_t_hyst_store()
296 data->hyst = clamp_val(DIV_ROUND_CLOSEST(limit - hyst, 1000), in adt7x10_t_hyst_store()
298 ret = adt7x10_write_byte(dev, ADT7X10_T_HYST, data->hyst); in adt7x10_t_hyst_store()