hwmon: (coretemp) Drop duplicate function get_pkg_tjmax
authorJean Delvare <khali@linux-fr.org>
Fri, 16 Sep 2011 19:21:43 +0000 (21:21 +0200)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 22 Sep 2011 00:25:18 +0000 (17:25 -0700)
commit6bf9e9b09c3abb5447bbbf16c2d0cbe721e44f3f
treee72c28e0063718c3505080ef136a68b49347d289
parentd93dc5c4478c1fd5de85a3e8aece9aad7bbae044
hwmon: (coretemp) Drop duplicate function get_pkg_tjmax

Function get_pkg_tjmax is a simplified copy of get_tjmax. Drop it and
always use get_tjmax, result is the same and this avoids code
duplication.

Also make get_tjmax less verbose: don't warn about MSR read failure
when failure was expected, and don't report TjMax in the logs unless
debugging is enabled.

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