aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/ts_filter_mean.h
blob: f5b5e4bbe1037017bbd411b942d3b0b878381c44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef __TS_FILTER_MEAN_H__
#define __TS_FILTER_MEAN_H__

#include "ts_filter.h"

/*
 * Touchscreen filter.
 *
 * mean
 *
 * (c) 2008,2009
 *     Andy Green <andy@openmoko.com>
 *     Nelson Castillo <arhuaco@freaks-unidos.net>
 */

/* Configuration for this filter. */
struct ts_filter_mean_configuration {
	/* Number of points for the mean. */
	int length;

	/* Generic filter configuration. */
	struct ts_filter_configuration config;
};

/* API functions for the mean filter */
extern const struct ts_filter_api ts_filter_mean_api;

#endif /* __TS_FILTER_MEAN_H__ */