bump to 2.6.30-rc6
[openwrt/staging/mkresin.git] / target / linux / s3c24xx / files-2.6.30 / include / linux / touchscreen / ts_filter_median.h
1 #ifndef __TS_FILTER_MEDIAN_H__
2 #define __TS_FILTER_MEDIAN_H__
3
4 #include "ts_filter.h"
5
6 /*
7 * Touchscreen filter.
8 *
9 * median
10 *
11 * (c) 2008 Andy Green <andy@openmoko.com>
12 */
13
14 struct ts_filter_median_configuration {
15 /* Size of the filter. */
16 int extent;
17 /* Precomputed midpoint. */
18 int midpoint;
19 /* A reference value for us to check if we are going fast or slow. */
20 int decimation_threshold;
21 /* How many points to replace if we're going fast. */
22 int decimation_above;
23 /* How many points to replace if we're going slow. */
24 int decimation_below;
25
26 /* Generic configuration. */
27 struct ts_filter_configuration config;
28 };
29
30 extern const struct ts_filter_api ts_filter_median_api;
31
32 #endif