From: Guenter Roeck Date: Fri, 25 Feb 2011 16:29:51 +0000 (-0800) Subject: hwmon: (lm85) Do not update hysteresis and temp_auto_off if auto_temp_min is changed X-Git-Tag: v2.6.39-rc1~448^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f8ab430fa5dc338ce3012c91a3c7a2685d708de;p=pandora-kernel.git 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 Acked-by: Jean Delvare --- Reading git-diff-tree failed