summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2013-01-07 08:18:12 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2013-01-07 08:18:12 +0100
commit5028e99a19fa01c9d1ed426e168fa6fd15feefb3 (patch)
tree55620788329d0a1bea1cd4c6b41c3c3589ac4076 /include
parent6067366f519fd91088c28eeee6a3cd67458a58be (diff)
hwmon: lm95245: implement remote over-temperature shutdown alarm limit
In addition to the critical temperature alarm limit this chip features a second alarm limit called remote over-temperature shutdown ROS with a separate pin configurable as trigger output. Implement this feature and add platform data to allow configuring respective pin as output.
Diffstat (limited to 'include')
-rw-r--r--include/linux/lm95245.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/linux/lm95245.h b/include/linux/lm95245.h
new file mode 100644
index 000000000000..b9290c7708b2
--- /dev/null
+++ b/include/linux/lm95245.h
@@ -0,0 +1,30 @@
+/*
+ * include/linux/lm95245.h
+ *
+ * LM95245, temperature monitoring device from National Semiconductors
+ *
+ * Copyright (c) 2013, Toradex, Inc.
+ *
+ * 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; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * 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 _LINUX_LM95245_H
+#define _LINUX_LM95245_H
+
+struct lm95245_platform_data {
+ bool enable_os_pin;
+};
+
+#endif /* _LINUX_LM95245_H */