diff options
author | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-02-25 08:29:51 -0800 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2011-03-14 22:36:25 -0700 |
commit | 4f8ab430fa5dc338ce3012c91a3c7a2685d708de (patch) | |
tree | b8d225ae5c6f3038440aee694744bf0a778463c2 /Documentation/hwmon/lm85 | |
parent | bc6db2b5ce79b1d5c4ba2763948fa6e731d60295 (diff) | |
download | op-kernel-dev-4f8ab430fa5dc338ce3012c91a3c7a2685d708de.zip op-kernel-dev-4f8ab430fa5dc338ce3012c91a3c7a2685d708de.tar.gz |
hwmon: (lm85) Do not update hysteresis and temp_auto_off if auto_temp_min is changed
So far, the driver updates temp_auto_hyst and temp_auto_off if temp_auto_min changes.
This may cause problems if temp_auto_off was not configured before configuring
temp_auto_min, because one of the variables used (off_desired) is not initialized
in this case.
To simplify the code, and for consistency with other drivers, no longer update the delta
between "min" and "off" until the user sets the "off" value again.
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'Documentation/hwmon/lm85')
0 files changed, 0 insertions, 0 deletions