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)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 May 2014 05:25:18 +0000 (07:25 +0200)
commit0f51a537c5e93361d31c09c0e293c1e05aeb66da
tree8b097475b702bf28b1acf3ec38507a9b07374127
parent4a767d1f3ff41fd057a5029def73f7c12cdcd70f
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