Lines Matching full:resolution
62 * @resolution_limits: Limit register resolution. Optional. Should be set if
63 * the resolution of limit registers does not match the
64 * resolution of the temperature register.
67 * than 1, and if the resolution changes with sample times.
106 u8 resolution; /* In bits, 9 to 16 */ member
297 static inline long lm75_reg_to_mc(s16 temp, u8 resolution) in lm75_reg_to_mc() argument
299 return ((temp >> (16 - resolution)) * 1000) >> (resolution - 8); in lm75_reg_to_mc()
358 *val = lm75_reg_to_mc(regval, data->resolution); in lm75_read()
369 u8 resolution; in lm75_write_temp() local
384 * Resolution of limit registers is assumed to be the same as the in lm75_write_temp()
385 * temperature input register resolution unless given explicitly. in lm75_write_temp()
388 resolution = data->params->resolution_limits; in lm75_write_temp()
390 resolution = data->resolution; in lm75_write_temp()
393 temp = DIV_ROUND_CLOSEST(temp << (resolution - 8), in lm75_write_temp()
394 1000) << (16 - resolution); in lm75_write_temp()
418 data->resolution = data->params->resolutions[index]; in lm75_update_interval()
574 /* Set to LM75 resolution (9 bits, 1/2 degree C) and range. in lm75_probe()
580 /* Save default sample time and resolution*/ in lm75_probe()
582 data->resolution = data->params->default_resolution; in lm75_probe()