]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb0e0a2ad1fa6675a4ce934ffcfe370d1ec742b7b
tree1752ce1e1507fa0049a70cb63e62d3eb6fd725e1
parentd89e84746abbe3a902d16d67d54f2e135be2646c
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