forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/thermal/thermal_hwmon.h
....@@ -17,6 +17,7 @@
1717
1818 #ifdef CONFIG_THERMAL_HWMON
1919 int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz);
20
+int devm_thermal_add_hwmon_sysfs(struct thermal_zone_device *tz);
2021 void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz);
2122 #else
2223 static inline int
....@@ -25,6 +26,12 @@
2526 return 0;
2627 }
2728
29
+static inline int
30
+devm_thermal_add_hwmon_sysfs(struct thermal_zone_device *tz)
31
+{
32
+ return 0;
33
+}
34
+
2835 static inline void
2936 thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz)
3037 {