]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (coretemp) Initialize tmin
authorJean Delvare <khali@linux-fr.org>
Wed, 14 Sep 2011 08:43:07 +0000 (04:43 -0400)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Wed, 14 Sep 2011 10:55:05 +0000 (03:55 -0700)
commit5916edc41287f1e318997287c6770e2f3c06439b
tree9cb608bbc5f3057aee103718041e16fa3523a98c
parent66ccf9268bda6c184ec6882c13a26b355dfad261
hwmon: (coretemp) Initialize tmin

ttarget is initialized when the driver is loaded, but tmin is not.
As a result, tempX_max_hyst attributes read 0. Fix this.

Also use THERM_*_THRESHOLD* constants in these initializations instead
of hard-coding the constants.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: "R, Durgadoss" <durgadoss.r@intel.com>
Cc: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/coretemp.c