aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2012-08-30 23:09:14 -0700
committerRuchi Kandoi <kandoiruchi@google.com>2015-02-03 16:49:17 -0800
commit0c10673fedf00a44cbe4bb765e5a4a6393d09f76 (patch)
treed901c29c939e78c26be5e15cf2974ef8202bf535 /include
parentb094216b314ce1b98349861b1f5d37ab2a205422 (diff)
w1: ds2482: Manage SLPZ pin sleep state
Place SLPZ pin in sleep state at system suspend time if a GPIO is provided by board platform data. Change-Id: I93c61fa0ae474e968e0f909209c9bfcaafe3dd2c Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_data/ds2482.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/platform_data/ds2482.h b/include/linux/platform_data/ds2482.h
new file mode 100644
index 000000000000..5a6879e2a09a
--- /dev/null
+++ b/include/linux/platform_data/ds2482.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright (C) 2012 Google, Inc.
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * 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.
+ */
+
+#ifndef __PLATFORM_DATA_DS2482__
+#define __PLATFORM_DATA_DS2482__
+
+struct ds2482_platform_data {
+ int slpz_gpio;
+};
+
+#endif /* __PLATFORM_DATA_DS2482__ */