blob: 2c9a613ab8414ff85c83b93806bc6d29362e4da3 [file] [log] [blame]
Praveen Chidambaram91814362012-05-25 17:36:07 -06001/*
Duy Truong790f06d2013-02-13 16:38:12 -08002 * Copyright (c) 2012, The Linux Foundation. All rights reserved.
Praveen Chidambaram91814362012-05-25 17:36:07 -06003 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#ifndef __MSM_THERMAL_H
15#define __MSM_THERMAL_H
16
17struct msm_thermal_data {
18 uint32_t sensor_id;
19 uint32_t poll_ms;
Eugene Seah2ee4a5d2012-06-25 18:16:41 -060020 uint32_t limit_temp_degC;
21 uint32_t temp_hysteresis_degC;
22 uint32_t freq_step;
Praveen Chidambaram91814362012-05-25 17:36:07 -060023};
24
25#ifdef CONFIG_THERMAL_MONITOR
26extern int msm_thermal_init(struct msm_thermal_data *pdata);
Eugene Seahb77b0c42012-07-02 19:28:50 -060027extern int msm_thermal_device_init(void);
Praveen Chidambaram91814362012-05-25 17:36:07 -060028#else
29static inline int msm_thermal_init(struct msm_thermal_data *pdata)
30{
31 return -ENOSYS;
32}
Eugene Seahb77b0c42012-07-02 19:28:50 -060033static inline int msm_thermal_device_init(void)
34{
35 return -ENOSYS;
36}
Praveen Chidambaram91814362012-05-25 17:36:07 -060037#endif
38
39#endif /*__MSM_THERMAL_H*/