thermal: platform_data: define common thermal_trip_info structure
Diwakar Tundlam [Thu, 10 Jan 2013 22:59:25 +0000 (14:59 -0800)]
Add a common platform_data header file to share trip point information
among thermal sensor drivers and platform files.

Bug 1200075

Change-Id: Iee5bb387b352c57362156415c6a73bc99539ee00
Signed-off-by: Diwakar Tundlam <dtundlam@nvidia.com>
Reviewed-on: http://git-master/r/190823
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jinyoung Park <jinyoungp@nvidia.com>

include/linux/platform_data/thermal_sensors.h [new file with mode: 0644]

diff --git a/include/linux/platform_data/thermal_sensors.h b/include/linux/platform_data/thermal_sensors.h
new file mode 100644 (file)
index 0000000..a60dc07
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * include/linux/platform_data/thermal_sensors.h
+ *
+ * Copyright (c) 2013, NVIDIA Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+
+#ifndef _THERMAL_SENSORS_H
+#define _THERMAL_SENSORS_H
+
+struct thermal_trip_info {
+       long trip_temp;
+       enum thermal_trip_type trip_type;
+       unsigned long upper;
+       unsigned long lower;
+       long hysteresis;
+       bool tripped;
+       unsigned int level;
+       char *cdev_type;
+};
+
+#endif /* _THERMAL_SENSORS_H */