aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/ts_filter_mean.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/touchscreen/ts_filter_mean.h')
-rw-r--r--drivers/input/touchscreen/ts_filter_mean.h25
1 files changed, 8 insertions, 17 deletions
diff --git a/drivers/input/touchscreen/ts_filter_mean.h b/drivers/input/touchscreen/ts_filter_mean.h
index 44c506c99c0..5677ed89019 100644
--- a/drivers/input/touchscreen/ts_filter_mean.h
+++ b/drivers/input/touchscreen/ts_filter_mean.h
@@ -8,27 +8,18 @@
*
* mean
*
- * (c) 2008 Andy Green <andy@openmoko.com>
+ * (c) 2008,2009
+ * Andy Green <andy@openmoko.com>
+ * Nelson Castillo <arhuaco@freaks-unidos.net>
*/
+/* Configuration for this filter. */
struct ts_filter_mean_configuration {
- int bits_filter_length;
- int averaging_threshold;
-
- int extent;
-};
-
-struct ts_filter_mean {
- struct ts_filter tsf;
- struct ts_filter_mean_configuration *config;
-
- int reported[MAX_TS_FILTER_COORDS];
- int lowpass[MAX_TS_FILTER_COORDS];
- int *fifo[MAX_TS_FILTER_COORDS];
- int fhead[MAX_TS_FILTER_COORDS];
- int ftail[MAX_TS_FILTER_COORDS];
+ /* Number of points for the mean. */
+ int length;
};
+/* API functions for the mean filter */
extern struct ts_filter_api ts_filter_mean_api;
-#endif
+#endif /* __TS_FILTER_MEAN_H__ */