]>
Commit | Line | Data |
---|---|---|
7e3c0381 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
0dd88793 EV |
2 | /* |
3 | * thermal_hwmon.h - Generic Thermal Management hwmon support. | |
4 | * | |
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 <[email protected]> | |
8 | * Copyright (C) 2008 Sujith Thomas <[email protected]> | |
9 | * | |
10 | * Copyright (C) 2013 Texas Instruments | |
11 | * Copyright (C) 2013 Eduardo Valentin <[email protected]> | |
0dd88793 EV |
12 | */ |
13 | #ifndef __THERMAL_HWMON_H__ | |
14 | #define __THERMAL_HWMON_H__ | |
15 | ||
16 | #include <linux/thermal.h> | |
17 | ||
18 | #ifdef CONFIG_THERMAL_HWMON | |
19 | int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz); | |
20 | void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz); | |
21 | #else | |
22 | static int | |
23 | thermal_add_hwmon_sysfs(struct thermal_zone_device *tz) | |
24 | { | |
25 | return 0; | |
26 | } | |
27 | ||
28 | static void | |
29 | thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz) | |
30 | { | |
31 | } | |
32 | #endif | |
33 | ||
34 | #endif /* __THERMAL_HWMON_H__ */ |