]> asedeno.scripts.mit.edu Git - linux.git/commit
thermal: core: create tz->device.groups dynamically
authorEduardo Valentin <edubezval@gmail.com>
Tue, 8 Nov 2016 05:08:51 +0000 (21:08 -0800)
committerZhang Rui <rui.zhang@intel.com>
Wed, 23 Nov 2016 02:06:12 +0000 (10:06 +0800)
commite161aefb9a5fff038054231ffb80abbc2aa42238
treefe6ea65a708b74a4ffb2de7030480dbed8784903
parent0a9de81907e6dc2adaddedca91ee26a7479b3750
thermal: core: create tz->device.groups dynamically

This is a patch to allow adding groups created dynamically. For now we
create only the existing group. However, this is a preparation to allow
creating trip groups, which are determined only when the number of trips
are known at runtime.

Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/thermal_core.c