Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   3)  *  Copyright (C) Linaro Ltd 2020
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   4)  *  Author: Daniel Lezcano <daniel.lezcano@linaro.org>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   5)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   6) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   7) /* Netlink notification function */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   8) #ifdef CONFIG_THERMAL_NETLINK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300   9) int __init thermal_netlink_init(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  10) int thermal_notify_tz_create(int tz_id, const char *name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  11) int thermal_notify_tz_delete(int tz_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  12) int thermal_notify_tz_enable(int tz_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  13) int thermal_notify_tz_disable(int tz_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  14) int thermal_notify_tz_trip_down(int tz_id, int id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  15) int thermal_notify_tz_trip_up(int tz_id, int id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  16) int thermal_notify_tz_trip_delete(int tz_id, int id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  17) int thermal_notify_tz_trip_add(int tz_id, int id, int type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  18) 			       int temp, int hyst);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  19) int thermal_notify_tz_trip_change(int tz_id, int id, int type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  20) 				  int temp, int hyst);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  21) int thermal_notify_cdev_state_update(int cdev_id, int state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  22) int thermal_notify_cdev_add(int cdev_id, const char *name, int max_state);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  23) int thermal_notify_cdev_delete(int cdev_id);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  24) int thermal_notify_tz_gov_change(int tz_id, const char *name);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  25) int thermal_genl_sampling_temp(int id, int temp);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  26) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  27) static inline int thermal_netlink_init(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  28) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  29) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  30) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  31) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  32) static inline int thermal_notify_tz_create(int tz_id, const char *name)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  33) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  34) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  35) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  37) static inline int thermal_notify_tz_delete(int tz_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  38) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  39) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  40) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  41) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  42) static inline int thermal_notify_tz_enable(int tz_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  43) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  44) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  45) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  46) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  47) static inline int thermal_notify_tz_disable(int tz_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  48) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  49) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  50) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  51) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  52) static inline int thermal_notify_tz_trip_down(int tz_id, int id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  53) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  54) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  55) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  56) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  57) static inline int thermal_notify_tz_trip_up(int tz_id, int id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  58) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  59) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  60) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  61) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  62) static inline int thermal_notify_tz_trip_delete(int tz_id, int id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  63) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  64) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  65) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  66) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  67) static inline int thermal_notify_tz_trip_add(int tz_id, int id, int type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  68) 					     int temp, int hyst)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  69) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  70) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  71) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  72) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  73) static inline int thermal_notify_tz_trip_change(int tz_id, int id, int type,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  74) 						int temp, int hyst)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  75) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  76) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  77) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  78) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  79) static inline int thermal_notify_cdev_state_update(int cdev_id, int state)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  80) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  81) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  82) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  83) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  84) static inline int thermal_notify_cdev_add(int cdev_id, const char *name,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  85) 					  int max_state)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  86) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  87) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  88) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  89) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  90) static inline int thermal_notify_cdev_delete(int cdev_id)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  91) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  92) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  93) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  94) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  95) static inline int thermal_notify_tz_gov_change(int tz_id, const char *name)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  96) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  97) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  98) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  99) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) static inline int thermal_genl_sampling_temp(int id, int temp)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) 	return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) #endif /* CONFIG_THERMAL_NETLINK */