From: Jean Delvare Date: Thu, 26 Jul 2012 20:18:43 +0000 (+0200) Subject: hwmon: (jc42) Don't reset hysteresis on device removal X-Git-Tag: v3.6-rc1~61^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5953e2761be088f66fd930dfbf6b36a5a41d82a3;p=pandora-kernel.git hwmon: (jc42) Don't reset hysteresis on device removal Restoring the configuration register on device removal has the side effect of also resetting the hysteresis value. This is inconsistent as the other limits are not reset, only hysteresis. So, following the principle of least surprise, preserve the hysteresis value when restoring the configuration register. Signed-off-by: Jean Delvare Cc: Guenter Roeck Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed