net: hns: fix the bug about mtu setting
[linux-2.6/btrfs-unstable.git] / drivers / thermal / thermal_hwmon.h
blobc798fdb2ae436872a6f3dd75842a8292ced3beae
1 /*
2 * thermal_hwmon.h - Generic Thermal Management hwmon support.
4 * Code based on Intel thermal_core.c. Copyrights of the original code:
5 * Copyright (C) 2008 Intel Corp
6 * Copyright (C) 2008 Zhang Rui <rui.zhang@intel.com>
7 * Copyright (C) 2008 Sujith Thomas <sujith.thomas@intel.com>
9 * Copyright (C) 2013 Texas Instruments
10 * Copyright (C) 2013 Eduardo Valentin <eduardo.valentin@ti.com>
11 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; version 2 of the License.
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
22 * You should have received a copy of the GNU General Public License along
23 * with this program; if not, write to the Free Software Foundation, Inc.,
24 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
26 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28 #ifndef __THERMAL_HWMON_H__
29 #define __THERMAL_HWMON_H__
31 #include <linux/thermal.h>
33 #ifdef CONFIG_THERMAL_HWMON
34 int thermal_add_hwmon_sysfs(struct thermal_zone_device *tz);
35 void thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz);
36 #else
37 static int
38 thermal_add_hwmon_sysfs(struct thermal_zone_device *tz)
40 return 0;
43 static void
44 thermal_remove_hwmon_sysfs(struct thermal_zone_device *tz)
47 #endif
49 #endif /* __THERMAL_HWMON_H__ */