• E
    thermal: core: move trips attributes to tz->device.groups · 4d0fe749
    Eduardo Valentin 提交于
    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: NEduardo Valentin <edubezval@gmail.com>
    Signed-off-by: NZhang Rui <rui.zhang@intel.com>
    4d0fe749
thermal_core.c 62.4 KB