aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/melfas_ts.h
diff options
context:
space:
mode:
authorcodeworkx <daniel.hillenbrand@codeworkx.de>2012-06-02 13:09:29 +0200
committercodeworkx <daniel.hillenbrand@codeworkx.de>2012-06-02 13:09:29 +0200
commitc6da2cfeb05178a11c6d062a06f8078150ee492f (patch)
treef3b4021d252c52d6463a9b3c1bb7245e399b009c /include/linux/melfas_ts.h
parentc6d7c4dbff353eac7919342ae6b3299a378160a6 (diff)
downloadkernel_samsung_smdk4412-c6da2cfeb05178a11c6d062a06f8078150ee492f.zip
kernel_samsung_smdk4412-c6da2cfeb05178a11c6d062a06f8078150ee492f.tar.gz
kernel_samsung_smdk4412-c6da2cfeb05178a11c6d062a06f8078150ee492f.tar.bz2
samsung update 1
Diffstat (limited to 'include/linux/melfas_ts.h')
-rw-r--r--include/linux/melfas_ts.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/include/linux/melfas_ts.h b/include/linux/melfas_ts.h
new file mode 100644
index 0000000..4805ce8
--- /dev/null
+++ b/include/linux/melfas_ts.h
@@ -0,0 +1,47 @@
+/*
+ * include/linux/melfas_ts.h - platform data structure for MMS Series sensor
+ *
+ * Copyright (C) 2010 Melfas, 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 _LINUX_MELFAS_TS_H
+#define _LINUX_MELFAS_TS_H
+
+#define MELFAS_TS_NAME "melfas-ts"
+
+struct melfas_tsi_platform_data {
+ int x_size;
+ int y_size;
+ int version;
+ int gpio_int;
+ int (*power)(int on);
+
+ void (*input_event)(void *data);
+
+ bool mt_protocol_b;
+ bool enable_btn_touch;
+
+ void (*set_touch_i2c)(void);
+ void (*set_touch_i2c_to_gpio)(void);
+
+#ifdef CONFIG_INPUT_FBSUSPEND
+ struct notifier_block fb_notif;
+#endif
+
+#if defined(CONFIG_MACH_C1CTC) || defined(CONFIG_MACH_M0_CHNOPEN) ||\
+ defined(CONFIG_MACH_M0_CMCC) || defined(CONFIG_MACH_M0_CTC)
+ int (*lcd_type)(void);
+#endif
+};
+
+#endif /* _LINUX_MELFAS_TS_H */