]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - drivers/thermal/thermal_hwmon.h
Merge tag 'for-5.11/dm-fix' of git://git.kernel.org/pub/scm/linux/kernel/git/device...
[mirror_ubuntu-hirsute-kernel.git] / drivers / thermal / thermal_hwmon.h
CommitLineData
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 <rui.zhang@intel.com>
8 * Copyright (C) 2008 Sujith Thomas <sujith.thomas@intel.com>
9 *
10 * Copyright (C) 2013 Texas Instruments
11 * Copyright (C) 2013 Eduardo Valentin <eduardo.valentin@ti.com>
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
19int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz);
c7fc403e 20int devm_thermal_add_hwmon_sysfs(struct thermal_zone_device *tz);
0dd88793
EV
21void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz);
22#else
03334ba8 23static inline int
0dd88793
EV
24thermal_add_hwmon_sysfs(struct thermal_zone_device *tz)
25{
26 return 0;
27}
28
c7fc403e
AS
29static inline int
30devm_thermal_add_hwmon_sysfs(struct thermal_zone_device *tz)
31{
32 return 0;
33}
34
03334ba8 35static inline void
0dd88793
EV
36thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz)
37{
38}
39#endif
40
41#endif /* __THERMAL_HWMON_H__ */