forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
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 {