Lines Matching defs:thermal_zone
34 #define ACPI_THERMAL_CLASS "thermal_zone"
174 struct thermal_zone_device *thermal_zone;
832 tz->thermal_zone =
838 tz->thermal_zone =
842 if (IS_ERR(tz->thermal_zone))
846 &tz->thermal_zone->device.kobj, "thermal_zone");
850 result = sysfs_create_link(&tz->thermal_zone->device.kobj,
856 tz->thermal_zone);
862 result = thermal_zone_device_enable(tz->thermal_zone);
866 dev_info(&tz->device->dev, "registered as thermal_zone%d\n",
867 tz->thermal_zone->id);
874 sysfs_remove_link(&tz->thermal_zone->device.kobj, "device");
876 sysfs_remove_link(&tz->device->dev.kobj, "thermal_zone");
878 thermal_zone_device_unregister(tz->thermal_zone);
885 sysfs_remove_link(&tz->device->dev.kobj, "thermal_zone");
886 sysfs_remove_link(&tz->thermal_zone->device.kobj, "device");
887 thermal_zone_device_unregister(tz->thermal_zone);
888 tz->thermal_zone = NULL;
1037 thermal_zone_device_update(tz->thermal_zone, THERMAL_EVENT_UNSPECIFIED);