Merge tag 'trace-v5.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[linux/fpc-iii.git] / drivers / thermal / thermal_netlink.h
blob828d1dddfa98b5677628748542bea40c7d7e71bd
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) Linaro Ltd 2020
4 * Author: Daniel Lezcano <daniel.lezcano@linaro.org>
5 */
7 /* Netlink notification function */
8 #ifdef CONFIG_THERMAL_NETLINK
9 int __init thermal_netlink_init(void);
10 int thermal_notify_tz_create(int tz_id, const char *name);
11 int thermal_notify_tz_delete(int tz_id);
12 int thermal_notify_tz_enable(int tz_id);
13 int thermal_notify_tz_disable(int tz_id);
14 int thermal_notify_tz_trip_down(int tz_id, int id);
15 int thermal_notify_tz_trip_up(int tz_id, int id);
16 int thermal_notify_tz_trip_delete(int tz_id, int id);
17 int thermal_notify_tz_trip_add(int tz_id, int id, int type,
18 int temp, int hyst);
19 int thermal_notify_tz_trip_change(int tz_id, int id, int type,
20 int temp, int hyst);
21 int thermal_notify_cdev_state_update(int cdev_id, int state);
22 int thermal_notify_cdev_add(int cdev_id, const char *name, int max_state);
23 int thermal_notify_cdev_delete(int cdev_id);
24 int thermal_notify_tz_gov_change(int tz_id, const char *name);
25 int thermal_genl_sampling_temp(int id, int temp);
26 #else
27 static inline int thermal_netlink_init(void)
29 return 0;
32 static inline int thermal_notify_tz_create(int tz_id, const char *name)
34 return 0;
37 static inline int thermal_notify_tz_delete(int tz_id)
39 return 0;
42 static inline int thermal_notify_tz_enable(int tz_id)
44 return 0;
47 static inline int thermal_notify_tz_disable(int tz_id)
49 return 0;
52 static inline int thermal_notify_tz_trip_down(int tz_id, int id)
54 return 0;
57 static inline int thermal_notify_tz_trip_up(int tz_id, int id)
59 return 0;
62 static inline int thermal_notify_tz_trip_delete(int tz_id, int id)
64 return 0;
67 static inline int thermal_notify_tz_trip_add(int tz_id, int id, int type,
68 int temp, int hyst)
70 return 0;
73 static inline int thermal_notify_tz_trip_change(int tz_id, int id, int type,
74 int temp, int hyst)
76 return 0;
79 static inline int thermal_notify_cdev_state_update(int cdev_id, int state)
81 return 0;
84 static inline int thermal_notify_cdev_add(int cdev_id, const char *name,
85 int max_state)
87 return 0;
90 static inline int thermal_notify_cdev_delete(int cdev_id)
92 return 0;
95 static inline int thermal_notify_tz_gov_change(int tz_id, const char *name)
97 return 0;
100 static inline int thermal_genl_sampling_temp(int id, int temp)
102 return 0;
104 #endif /* CONFIG_THERMAL_NETLINK */