Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / drivers / thermal / thermal_hwmon.h
blobb429f6e7abdb27bb70966014b0f5d1d35b32d252
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * thermal_hwmon.h - Generic Thermal Management hwmon support.
5 * Code based on Intel thermal_core.c. Copyrights of the original code:
6 * Copyright (C) 2008 Intel Corp
7 * Copyright (C) 2008 Zhang Rui <rui.zhang@intel.com>
8 * Copyright (C) 2008 Sujith Thomas <sujith.thomas@intel.com>
10 * Copyright (C) 2013 Texas Instruments
11 * Copyright (C) 2013 Eduardo Valentin <eduardo.valentin@ti.com>
13 #ifndef __THERMAL_HWMON_H__
14 #define __THERMAL_HWMON_H__
16 #include <linux/thermal.h>
18 #ifdef CONFIG_THERMAL_HWMON
19 int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz);
20 int devm_thermal_add_hwmon_sysfs(struct device *dev, struct thermal_zone_device *tz);
21 void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz);
22 #else
23 static inline int
24 thermal_add_hwmon_sysfs(struct thermal_zone_device *tz)
26 return 0;
29 static inline int
30 devm_thermal_add_hwmon_sysfs(struct device *dev, struct thermal_zone_device *tz)
32 return 0;
35 static inline void
36 thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz)
39 #endif
41 #endif /* __THERMAL_HWMON_H__ */