hwmon: (lm73) Add support for max/min alarms

Add support for temp1_min_alarm and temp1_max_alarm

Signed-off-by: Chris Verges <kg4ysn@gmail.com>
[linux@roeck-us.net: cleanup; dropped platform data and interrupt support]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Chris Verges
2013-01-05 01:41:20 -08:00
committed by Guenter Roeck
parent 8c14d126ae
commit 2bf9233a10
2 changed files with 43 additions and 0 deletions
+11
View File
@@ -77,3 +77,14 @@ via the following function:
where 'x' is the output from 'update_interval' and 'g(x)' is the
resolution in degrees C per LSB.
Alarm Support
-------------
The LM73 features a simple over-temperature alarm mechanism. This
feature is exposed via the sysfs attributes.
The attributes 'temp1_max_alarm' and 'temp1_min_alarm' are flags
provided by the LM73 that indicate whether the measured temperature has
passed the 'temp1_max' and 'temp1_min' thresholds, respectively. These
values _must_ be read to clear the registers on the LM73.