]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
hwmon: Add unspecified temperature thresholds to sysfs ABI
authorGuenter Roeck <guenter.roeck@ericsson.com>
Sun, 18 Sep 2011 18:47:48 +0000 (11:47 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 23 Sep 2011 17:40:02 +0000 (10:40 -0700)
Some recent temperature sensor chips provide thresholds which are not associated
with lower or upper limits. The use of those thresholds is application specific.

Provide sysfs ABI attributes to support such thresholds.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Reviewed-by: Durgadoss R <durgadoss.r@intel.com>
Documentation/hwmon/sysfs-interface

index a4aa8f600e09643beb6a2b505c9c08d00f28166a..e65e7e85d2cb65621201fa330b9a52cc213ce3bd 100644 (file)
@@ -394,6 +394,18 @@ temp_reset_history
                Reset temp_lowest and temp_highest for all sensors
                WO
 
+temp[1-*]_threshold[1-*]
+               Unspecified threshold. Use if the chip provides temperature
+               thresholds which are not associated with lower or upper limits.
+               RW
+               Unit: millidegree Celsius
+
+temp[1-*]_threshold[1-*]_triggered
+               Channel trigger information.
+               0: Temperature is below threshold.
+               1: Temperature is at or above threshold.
+               RO
+
 Some chips measure temperature using external thermistors and an ADC, and
 report the temperature measurement as a voltage. Converting this voltage
 back to a temperature (or the other way around for limits) requires