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