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)
commitcd5bd3df1a6e7a68454734fb109c409101c20f42
tree9cb608bbc5f3057aee103718041e16fa3523a98c
parent40257b953fdd519c743138f3fbe3962d54991116
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