]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
thermal: core: move trips attributes to tz->device.groups
authorEduardo Valentin <edubezval@gmail.com>
Tue, 8 Nov 2016 05:08:52 +0000 (21:08 -0800)
committerZhang Rui <rui.zhang@intel.com>
Wed, 23 Nov 2016 02:06:12 +0000 (10:06 +0800)
commit4d0fe7490d7f4d61b582acbae718328284f151b9
tree5ca30bdc6b8a80036775227886cf935845803b02
parente161aefb9a5fff038054231ffb80abbc2aa42238
thermal: core: move trips attributes to tz->device.groups

Finally, move the last thermal zone sysfs attributes to
tz->device.groups: trips attributes. This requires adding a
attribute_group to thermal_zone_device, creating it dynamically, and
then setting all trips attributes in it. The trips attribute is then
added to the tz->device.groups.

As the removal of all attributes are handled by device core, the device
remove calls are not needed anymore.

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
include/linux/thermal.h