Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / thermal / thermal_thresholds.h
blobcb372659a20d648e92d7800628d29f4343f4137b
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __THERMAL_THRESHOLDS_H__
3 #define __THERMAL_THRESHOLDS_H__
5 struct user_threshold {
6 struct list_head list_node;
7 int temperature;
8 int direction;
9 };
11 int thermal_thresholds_init(struct thermal_zone_device *tz);
12 void thermal_thresholds_exit(struct thermal_zone_device *tz);
13 void thermal_thresholds_handle(struct thermal_zone_device *tz, int *low, int *high);
14 void thermal_thresholds_flush(struct thermal_zone_device *tz);
15 int thermal_thresholds_add(struct thermal_zone_device *tz, int temperature, int direction);
16 int thermal_thresholds_delete(struct thermal_zone_device *tz, int temperature, int direction);
17 int thermal_thresholds_for_each(struct thermal_zone_device *tz,
18 int (*cb)(struct user_threshold *, void *arg), void *arg);
19 #endif