aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/ts_filter_median.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/touchscreen/ts_filter_median.h')
-rw-r--r--drivers/input/touchscreen/ts_filter_median.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/ts_filter_median.h b/drivers/input/touchscreen/ts_filter_median.h
index 589bc6d996c..17a1ca6d201 100644
--- a/drivers/input/touchscreen/ts_filter_median.h
+++ b/drivers/input/touchscreen/ts_filter_median.h
@@ -11,13 +11,20 @@
* (c) 2008 Andy Green <andy@openmoko.com>
*/
-/* TODO: comment every field */
struct ts_filter_median_configuration {
+ /* Size of the filter. */
int extent;
+ /* Precomputed midpoint. */
int midpoint;
+ /* A reference value for us to check if we are going fast or slow. */
int decimation_threshold;
+ /* How many points to replace if we're going fast. */
int decimation_above;
+ /* How many points to replace if we're going slow. */
int decimation_below;
+
+ /* Generic configuration. */
+ struct ts_filter_configuration config;
};
extern struct ts_filter_api ts_filter_median_api;