hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
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 {