]> git.ipfire.org Git - thirdparty/kernel/stable.git/blob - include/linux/platform_data/db8500_thermal.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157
[thirdparty/kernel/stable.git] / include / linux / platform_data / db8500_thermal.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * db8500_thermal.h - DB8500 Thermal Management Implementation
4 *
5 * Copyright (C) 2012 ST-Ericsson
6 * Copyright (C) 2012 Linaro Ltd.
7 *
8 * Author: Hongbo Zhang <hongbo.zhang@linaro.com>
9 */
10
11 #ifndef _DB8500_THERMAL_H_
12 #define _DB8500_THERMAL_H_
13
14 #include <linux/thermal.h>
15
16 #define COOLING_DEV_MAX 8
17
18 struct db8500_trip_point {
19 unsigned long temp;
20 enum thermal_trip_type type;
21 char cdev_name[COOLING_DEV_MAX][THERMAL_NAME_LENGTH];
22 };
23
24 struct db8500_thsens_platform_data {
25 struct db8500_trip_point trip_points[THERMAL_MAX_TRIPS];
26 int num_trips;
27 };
28
29 #endif /* _DB8500_THERMAL_H_ */