0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef __THERMAL_HWMON_H__
0014 #define __THERMAL_HWMON_H__
0015
0016 #include <linux/thermal.h>
0017
0018 #ifdef CONFIG_THERMAL_HWMON
0019 int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz);
0020 int devm_thermal_add_hwmon_sysfs(struct thermal_zone_device *tz);
0021 void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz);
0022 #else
0023 static inline int
0024 thermal_add_hwmon_sysfs(struct thermal_zone_device *tz)
0025 {
0026 return 0;
0027 }
0028
0029 static inline int
0030 devm_thermal_add_hwmon_sysfs(struct thermal_zone_device *tz)
0031 {
0032 return 0;
0033 }
0034
0035 static inline void
0036 thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz)
0037 {
0038 }
0039 #endif
0040
0041 #endif