Merge branch 'core/irq_work' of git://git.kernel.org/pub/scm/linux/kernel/git/frederi...
[sfrench/cifs-2.6.git] / include / linux / platform_data / db8500_thermal.h
1 /*
2  * db8500_thermal.h - DB8500 Thermal Management Implementation
3  *
4  * Copyright (C) 2012 ST-Ericsson
5  * Copyright (C) 2012 Linaro Ltd.
6  *
7  * Author: Hongbo Zhang <hongbo.zhang@linaro.com>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  */
19
20 #ifndef _DB8500_THERMAL_H_
21 #define _DB8500_THERMAL_H_
22
23 #include <linux/thermal.h>
24
25 #define COOLING_DEV_MAX 8
26
27 struct db8500_trip_point {
28         unsigned long temp;
29         enum thermal_trip_type type;
30         char cdev_name[COOLING_DEV_MAX][THERMAL_NAME_LENGTH];
31 };
32
33 struct db8500_thsens_platform_data {
34         struct db8500_trip_point trip_points[THERMAL_MAX_TRIPS];
35         int num_trips;
36 };
37
38 #endif /* _DB8500_THERMAL_H_ */