summaryrefslogtreecommitdiff
path: root/syna_tcm2_testing.h
diff options
context:
space:
mode:
authordavidycchen <davidycchen@google.com>2021-08-17 14:00:30 +0800
committerdavidycchen <davidycchen@google.com>2021-09-08 15:12:37 +0800
commitb709f4d97bb33d74ff5a14f8ff8c617b5f605c67 (patch)
tree1a431604d32160798b1b9791e81e9d9e172d13dc /syna_tcm2_testing.h
parentdcf50a13512c25d57d413b1ce99f1770450e3d5f (diff)
downloadsynaptics_touch-b709f4d97bb33d74ff5a14f8ff8c617b5f605c67.tar.gz
synaptics: add initial driver
Initial driver provided by Synaptics. Bug: 198228556 Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I471eda97a2b2e06a4dd9328e69c71d5f8e8fdc93
Diffstat (limited to 'syna_tcm2_testing.h')
-rw-r--r--syna_tcm2_testing.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/syna_tcm2_testing.h b/syna_tcm2_testing.h
new file mode 100644
index 0000000..bbc7254
--- /dev/null
+++ b/syna_tcm2_testing.h
@@ -0,0 +1,66 @@
+/* SPDX-License-Identifier: GPL-2.0
+ *
+ * Synaptics TouchCom touchscreen driver
+ *
+ * Copyright (C) 2017-2018 Synaptics Incorporated. All rights reserved.
+ *
+ * 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.
+ *
+ * INFORMATION CONTAINED IN THIS DOCUMENT IS PROVIDED "AS-IS," AND SYNAPTICS
+ * EXPRESSLY DISCLAIMS ALL EXPRESS AND IMPLIED WARRANTIES, INCLUDING ANY
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE,
+ * AND ANY WARRANTIES OF NON-INFRINGEMENT OF ANY INTELLECTUAL PROPERTY RIGHTS.
+ * IN NO EVENT SHALL SYNAPTICS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR IN CONNECTION
+ * WITH THE USE OF THE INFORMATION CONTAINED IN THIS DOCUMENT, HOWEVER CAUSED
+ * AND BASED ON ANY THEORY OF LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+ * NEGLIGENCE OR OTHER TORTIOUS ACTION, AND EVEN IF SYNAPTICS WAS ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE. IF A TRIBUNAL OF COMPETENT JURISDICTION DOES
+ * NOT PERMIT THE DISCLAIMER OF DIRECT DAMAGES OR ANY OTHER DAMAGES, SYNAPTICS'
+ * TOTAL CUMULATIVE LIABILITY TO ANY PARTY SHALL NOT EXCEED ONE HUNDRED U.S.
+ * DOLLARS.
+ */
+
+#ifndef _SYNAPTICS_TCM2_TESTING_H_
+#define _SYNAPTICS_TCM2_TESTING_H_
+
+#include "syna_tcm2.h"
+
+/**
+ * syna_testing_create_dir()
+ *
+ * Create a directory and register it with sysfs.
+ * Then, create all defined sysfs files.
+ *
+ * @param
+ * [ in] tcm: the driver handle
+ * [ in] sysfs_dir: root directory of sysfs nodes
+ *
+ * @return
+ * on success, 0; otherwise, negative value on error.
+ */
+int syna_testing_create_dir(struct syna_tcm *tcm,
+ struct kobject *sysfs_dir);
+/**
+ *syna_testing_remove_dir()
+ *
+ * Remove the allocate sysfs directory
+ *
+ * @param
+ * none
+ *
+ * @return
+ * on success, 0; otherwise, negative value on error.
+ */
+void syna_testing_remove_dir(void);
+
+
+#endif /* end of _SYNAPTICS_TCM2_TESTING_H_ */