]> git.baikalelectronics.ru Git - kernel.git/commit
x86_pkg_temp_thermal: Fix the thermal zone type
authorJean Delvare <jdelvare@suse.de>
Sun, 2 Mar 2014 14:05:49 +0000 (15:05 +0100)
committerZhang Rui <rui.zhang@intel.com>
Mon, 3 Mar 2014 15:13:37 +0000 (23:13 +0800)
commit6d5d669caaef14ddfc65f296b4c370f06df528d5
treeafb8c75e3c33f0a22c694e2678a9fe3046153509
parent33281ec62b27be4da82ec19e96c7783810fcd571
x86_pkg_temp_thermal: Fix the thermal zone type

The thermal zone type should not include an instance number. Otherwise
each zone is considered a different type and the thermal-to-hwmon
bridge fails to group them all in a single hwmon device.

I also changed the type to "x86_pkg_temp", because "pkg" was too
generic, and other thermal drivers use an underscore, not a dash, as
a separator. Or maybe "cpu_pkg_temp" would be better?

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: Eduardo Valentin <eduardo.valentin@ti.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/x86_pkg_temp_thermal.c