drivers: thermal: parent virtual hwmon with thermal zone
authorEduardo Valentin <eduardo.valentin@ti.com>
Fri, 23 Aug 2013 21:07:58 +0000 (17:07 -0400)
committerEduardo Valentin <eduardo.valentin@ti.com>
Tue, 3 Sep 2013 13:10:10 +0000 (09:10 -0400)
commitb82715fdd4a5407f56853b24d387d484dd9c3b5b
tree1752ce1e1507fa0049a70cb63e62d3eb6fd725e1
parent0dd88793aacd7c91b9724be7b618bb3f7c25befe
drivers: thermal: parent virtual hwmon with thermal zone

When  creating virtual hwmon devices based out of thermal
zone devices, the virtual devices won't have parents.

This patch changes the code so that the parent of virtual
hwmon devices is the thermal zone device that they are
based of.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
drivers/thermal/thermal_hwmon.c