aboutsummaryrefslogtreecommitdiff
path: root/include/linux/input/touchscreen/ts_filter_group.h
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2009-10-24 16:06:05 +0200
committerLars-Peter Clausen <lars@metafoo.de>2009-12-21 17:15:48 +0100
commitc0be5ad97fb0f722b8afded74256742c008991d9 (patch)
tree4dc65a604561c5da3e365055623888c58cb6f657 /include/linux/input/touchscreen/ts_filter_group.h
parent871c0b38ef349686071b055d012bff712088aa61 (diff)
ts-filter: Move include files to include/linux/input/touchscreen
Diffstat (limited to 'include/linux/input/touchscreen/ts_filter_group.h')
-rw-r--r--include/linux/input/touchscreen/ts_filter_group.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/include/linux/input/touchscreen/ts_filter_group.h b/include/linux/input/touchscreen/ts_filter_group.h
new file mode 100644
index 00000000000..2d727f30086
--- /dev/null
+++ b/include/linux/input/touchscreen/ts_filter_group.h
@@ -0,0 +1,36 @@
+#ifndef __TS_FILTER_GROUP_H__
+#define __TS_FILTER_GROUP_H__
+
+#include <linux/input/touchscreen/ts_filter.h>
+
+/*
+ * Touchscreen group filter.
+ *
+ * Copyright (C) 2008,2009 by Openmoko, Inc.
+ * Author: Nelson Castillo <arhuaco@freaks-unidos.net>
+ *
+ */
+
+struct ts_filter_group_configuration {
+ /* Size of the filter. */
+ int length;
+ /*
+ * If two points are separated by this distance or less they
+ * are considered to be members of the same group.
+ */
+ int close_enough;
+ /* Minimum allowed size for the biggest group in the sample set. */
+ int threshold;
+ /*
+ * Number of times we try to get a group of points with at least
+ * threshold points.
+ */
+ int attempts;
+
+ /* Generic filter configuration. */
+ struct ts_filter_configuration config;
+};
+
+extern const struct ts_filter_api ts_filter_group_api;
+
+#endif