Lines Matching refs:temperature
175 * wdrtas_get_temperature - returns current temperature
177 * returns temperature or <0 on failures
179 * wdrtas_get_temperature returns the current temperature in Fahrenheit. It
185 int temperature = 0;
187 result = rtas_get_sensor(WDRTAS_THERMAL_SENSOR, 0, &temperature);
192 temperature = ((temperature * 9) / 5) + 32; /* fahrenheit */
194 return temperature;
394 * wdrtas_temp_read - gives back the temperature in fahrenheit
403 * wdrtas_temp_read gives the temperature to the users by copying this
409 int temperature = 0;
411 temperature = wdrtas_get_temperature();
412 if (temperature < 0)
413 return temperature;
415 if (copy_to_user(buf, &temperature, 1))
422 * wdrtas_temp_open - open function of temperature device
428 * function called when temperature device is opened
436 * wdrtas_temp_close - close function of temperature device
496 .name = "temperature",
517 pr_warn("couldn't get token for get-sensor-state. Trying to continue without temperature support.\n");
544 * wdrtas_register_devs unregisters the watchdog and temperature watchdog
559 * wdrtas_register_devs registers the watchdog and temperature watchdog
575 pr_warn("couldn't register watchdog temperature misc device. Continuing without temperature support.\n");