hwmon: (jc42) Don't reset hysteresis on device removal
authorJean Delvare <khali@linux-fr.org>
Thu, 26 Jul 2012 20:18:43 +0000 (22:18 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 27 Jul 2012 20:59:22 +0000 (13:59 -0700)
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 <khali@linux-fr.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>

No differences found