1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) Linaro Ltd 2020
4 * Author: Daniel Lezcano <daniel.lezcano@linaro.org>
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
,
19 int thermal_notify_tz_trip_change(int tz_id
, int id
, int type
,
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
);
27 static inline int thermal_netlink_init(void)
32 static inline int thermal_notify_tz_create(int tz_id
, const char *name
)
37 static inline int thermal_notify_tz_delete(int tz_id
)
42 static inline int thermal_notify_tz_enable(int tz_id
)
47 static inline int thermal_notify_tz_disable(int tz_id
)
52 static inline int thermal_notify_tz_trip_down(int tz_id
, int id
)
57 static inline int thermal_notify_tz_trip_up(int tz_id
, int id
)
62 static inline int thermal_notify_tz_trip_delete(int tz_id
, int id
)
67 static inline int thermal_notify_tz_trip_add(int tz_id
, int id
, int type
,
73 static inline int thermal_notify_tz_trip_change(int tz_id
, int id
, int type
,
79 static inline int thermal_notify_cdev_state_update(int cdev_id
, int state
)
84 static inline int thermal_notify_cdev_add(int cdev_id
, const char *name
,
90 static inline int thermal_notify_cdev_delete(int cdev_id
)
95 static inline int thermal_notify_tz_gov_change(int tz_id
, const char *name
)
100 static inline int thermal_genl_sampling_temp(int id
, int temp
)
104 #endif /* CONFIG_THERMAL_NETLINK */