thermal_thresholds.h 789 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __THERMAL_THRESHOLDS_H__
  3. #define __THERMAL_THRESHOLDS_H__
  4. struct user_threshold {
  5. struct list_head list_node;
  6. int temperature;
  7. int direction;
  8. };
  9. int thermal_thresholds_init(struct thermal_zone_device *tz);
  10. void thermal_thresholds_exit(struct thermal_zone_device *tz);
  11. void thermal_thresholds_handle(struct thermal_zone_device *tz, int *low, int *high);
  12. void thermal_thresholds_flush(struct thermal_zone_device *tz);
  13. int thermal_thresholds_add(struct thermal_zone_device *tz, int temperature, int direction);
  14. int thermal_thresholds_delete(struct thermal_zone_device *tz, int temperature, int direction);
  15. int thermal_thresholds_for_each(struct thermal_zone_device *tz,
  16. int (*cb)(struct user_threshold *, void *arg), void *arg);
  17. #endif