aboutsummaryrefslogtreecommitdiff
path: root/include/linux/input/touchscreen/ts_filter_linear.h
blob: 6f5e830745629b5771afa2c45fe13bc531c79daa (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
29
30
31
#ifndef __TS_FILTER_LINEAR_H__
#define __TS_FILTER_LINEAR_H__

#include <linux/input/touchscreen/ts_filter.h>
#include <linux/kobject.h>

/*
 * Touchscreen linear filter.
 *
 * Copyright (C) 2008,2009 by Openmoko, Inc.
 * Author: Nelson Castillo <arhuaco@freaks-unidos.net>
 *
 */

#define TS_FILTER_LINEAR_NCONSTANTS 7

struct ts_filter_linear_configuration {
	/* Calibration constants. */
	int constants[TS_FILTER_LINEAR_NCONSTANTS];
	/* First coordinate. */
	int coord0;
	/* Second coordinate. */
	int coord1;

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

extern const struct ts_filter_api ts_filter_linear_api;

#endif