aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/ts_filter_group.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/touchscreen/ts_filter_group.h')
-rw-r--r--drivers/input/touchscreen/ts_filter_group.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/ts_filter_group.h b/drivers/input/touchscreen/ts_filter_group.h
index c13b0c487df..4fc2af70608 100644
--- a/drivers/input/touchscreen/ts_filter_group.h
+++ b/drivers/input/touchscreen/ts_filter_group.h
@@ -12,10 +12,23 @@
*/
struct ts_filter_group_configuration {
- int extent;
+ /* 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 struct ts_filter_api ts_filter_group_api;