Lines Matching defs:thermal_zone
34 #define ACPI_THERMAL_CLASS "thermal_zone"
130 struct thermal_zone_device *thermal_zone;
427 for_each_thermal_trip(tz->thermal_zone, acpi_thermal_adjust_trip, tz);
447 thermal_zone_device_exec(tz->thermal_zone,
658 struct device *tzdev = thermal_zone_device(tz->thermal_zone);
662 &tzdev->kobj, "thermal_zone");
669 sysfs_remove_link(&tz->device->dev.kobj, "thermal_zone");
676 struct device *tzdev = thermal_zone_device(tz->thermal_zone);
678 sysfs_remove_link(&tz->device->dev.kobj, "thermal_zone");
743 tz->thermal_zone = thermal_zone_device_register_with_trips("acpitz",
751 if (IS_ERR(tz->thermal_zone)) {
752 result = PTR_ERR(tz->thermal_zone);
760 result = thermal_zone_device_enable(tz->thermal_zone);
764 dev_info(&tz->device->dev, "registered as thermal_zone%d\n",
765 thermal_zone_device_id(tz->thermal_zone));
772 thermal_zone_device_unregister(tz->thermal_zone);
781 thermal_zone_device_disable(tz->thermal_zone);
783 thermal_zone_device_unregister(tz->thermal_zone);
784 tz->thermal_zone = NULL;
916 thermal_zone_device_update(tz->thermal_zone, THERMAL_EVENT_UNSPECIFIED);