Searched refs:tempid (Results 1 – 2 of 2) sorted by relevance
117 int tempid; in tmp421_get_temperature() local119 if (sscanf(name, "temperature%d", &tempid) != 1) { in tmp421_get_temperature()124 if (tempid >= 4 || tempid < 0) { in tmp421_get_temperature()129 value = ((s->temperature[tempid] - offset) * 1000 + 128) / 256; in tmp421_get_temperature()144 int tempid; in tmp421_set_temperature() local156 if (sscanf(name, "temperature%d", &tempid) != 1) { in tmp421_set_temperature()161 if (tempid >= 4 || tempid < 0) { in tmp421_set_temperature()166 s->temperature[tempid] = (int16_t) ((temp * 256 - 128) / 1000) + offset; in tmp421_set_temperature()
59 unsigned tempid; in OBJECT_DECLARE_TYPE() local61 if (sscanf(name, "temperature%u", &tempid) != 1) { in OBJECT_DECLARE_TYPE()66 if (tempid >= sc->sensors_count) { in OBJECT_DECLARE_TYPE()71 value = s->sensor[tempid].raw_temp_current * 1000; in OBJECT_DECLARE_TYPE()82 unsigned tempid; in emc141x_set_temperature() local88 if (sscanf(name, "temperature%u", &tempid) != 1) { in emc141x_set_temperature()93 if (tempid >= sc->sensors_count) { in emc141x_set_temperature()98 s->sensor[tempid].raw_temp_current = temp / 1000; in emc141x_set_temperature()