blob: fe9be897e83642b4e020d2a9b4f953f0d68f06b2 [file] [log] [blame]
Praveen Chidambaram91814362012-05-25 17:36:07 -06001/*
2 * Copyright (c) 2012, Code Aurora Forum. All rights reserved.
3 *
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;
20 uint32_t limit_temp;
21 uint32_t temp_hysteresis;
22 uint32_t limit_freq;
23};
24
25#ifdef CONFIG_THERMAL_MONITOR
26extern int msm_thermal_init(struct msm_thermal_data *pdata);
27#else
28static inline int msm_thermal_init(struct msm_thermal_data *pdata)
29{
30 return -ENOSYS;
31}
32#endif
33
34#endif /*__MSM_THERMAL_H*/