diff options
author | Guenter Roeck <linux@roeck-us.net> | 2014-05-12 14:10:56 -0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-05-21 19:02:24 -0400 |
commit | 84899d394e755989a1cc080083080f7695c36467 (patch) | |
tree | 0a7c3e8ea182b8c23c1b4599d55117b8a1c5eefc /Documentation/hwmon/emc1403 | |
parent | 03f49f641ab70b2ceea674e666f5b933e3bc5d27 (diff) |
hwmon: (emc1403) Make all hyst attributes except for temp1_crit_hyst read-only
All chips in this chip series only support a single hysteresis value. Having
multiple writable hysteresis attributes is therefore confusing, since a single
write affects all hysteresis temperatures. Make all but one (temp1_crit_hyst)
read-only.
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/hwmon/emc1403')
-rw-r--r-- | Documentation/hwmon/emc1403 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Documentation/hwmon/emc1403 b/Documentation/hwmon/emc1403 index b109e35e2385..a869b0ef6a9d 100644 --- a/Documentation/hwmon/emc1403 +++ b/Documentation/hwmon/emc1403 | |||
@@ -51,6 +51,9 @@ This implementation detail implies the following: | |||
51 | was 80 degrees C, and the hysteresis was 75 degrees C, and you change | 51 | was 80 degrees C, and the hysteresis was 75 degrees C, and you change |
52 | the critical limit to 90 degrees C, then the hysteresis will | 52 | the critical limit to 90 degrees C, then the hysteresis will |
53 | automatically change to 85 degrees C. | 53 | automatically change to 85 degrees C. |
54 | * While hysteresis limits can be set for all critical limits, setting a single | 54 | * The hysteresis values can't be set independently. We decided to make |
55 | hysteresis value affects the hysteresis values for all limits on all sensors. | 55 | only temp1_crit_hyst writable, while all other hysteresis attributes |
56 | are read-only. Setting temp1_crit_hyst writes the difference between | ||
57 | temp1_crit_hyst and temp1_crit into the chip, and the same relative | ||
58 | hysteresis applies automatically to all other limits. | ||
56 | * The limits should be set before the hysteresis. | 59 | * The limits should be set before the hysteresis. |