Lines Matching defs:temp
43 /* These are for the ADM1023's additional precision on the remote temp sensor */
63 * a lower temp than THYST actually triggers an alarm instead of
81 int temp[2];
105 data->temp[i] = 1000 *
124 data->temp[1] += 125 * (i2c_smbus_read_byte_data(
152 return sprintf(buf, "%d\n", data->temp[index]);
196 long temp;
199 err = kstrtol(buf, 10, &temp);
202 temp /= 1000;
205 reg_val = clamp_val(temp, -128, 127);
222 long temp;
225 err = kstrtol(buf, 10, &temp);
228 temp /= 1000;
231 reg_val = clamp_val(temp, -128, 127);
277 static SENSOR_DEVICE_ATTR_RO(temp1_input, temp, 0);
280 static SENSOR_DEVICE_ATTR_RO(temp2_input, temp, 1);