]> git.baikalelectronics.ru Git - kernel.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)
commit57a39b9d83db414780459764c5a007f0bd5d4078
treefe6ea65a708b74a4ffb2de7030480dbed8784903
parent547f710674afe09f4e5582e5f46af0ccf7d900bd
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