Jean Delvare ec38fa2b35 hwmon: (lm90) Fix handling of hysteresis value
There are several problems in the way the hysteresis value is handled
by the lm90 driver:

* In show_temphyst(), specific handling of the MAX6646 is missing, so
  the hysteresis is reported incorrectly if the critical temperature
  is over 127 degrees C.
* In set_temphyst(), the new hysteresis register value is written to
  the chip but data->temp_hyst isn't updated accordingly, so there is
  a short period of time (up to 2 seconds) where the old hystereris
  value will be returned while the new one is already active.
* In set_temphyst(), the critical temperature which is used as a base
  to compute the value of the hysteresis register lacks
  device-specific handling. As a result, the value of the hysteresis
  register might be incorrect for the ADT7461 and MAX6646 chips.

Fix these 3 bugs.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Ben Hutchings <bhutchings@solarflare.com>
Cc: Nate Case <ncase@xes-inc.com>
2008-10-26 17:04:39 +01:00
..
2008-10-21 07:48:21 -04:00
2008-10-23 00:11:07 -04:00
2008-10-20 08:52:40 -07:00
2008-10-22 01:19:39 +02:00
2008-10-17 14:41:09 -07:00
2008-10-21 23:58:41 -04:00
2008-10-21 07:48:33 -04:00
2008-10-23 00:43:47 -04:00
2008-10-21 07:48:37 -04:00
2008-10-16 11:21:30 -07:00
2008-10-21 15:49:55 +11:00
2008-10-23 19:48:29 -07:00
2008-10-23 00:11:07 -04:00
2008-10-23 09:35:18 -07:00
2008-10-20 08:52:36 -07:00
2008-10-23 09:19:47 -07:00
2008-10-22 22:55:20 -07:00