diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2009-10-24 22:09:26 +0200 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2009-10-24 22:09:26 +0200 |
commit | 21f85315656630a662927b9754549b30d7198777 (patch) | |
tree | 694e70e97c3e8fe2456c7dedca58e9629f244d22 /include/linux/input/touchscreen/ts_filter_linear.h | |
parent | 1a6ac25d8fe1a5f4fccb1a733acd7a78b8ebc07e (diff) | |
parent | 36a5e8676f2d19482cd4d9837c12d24c58882f8a (diff) |
Merge branch 's3c-touchscreen-2.6.31' into om-gta01-2.6.31
Diffstat (limited to 'include/linux/input/touchscreen/ts_filter_linear.h')
-rw-r--r-- | include/linux/input/touchscreen/ts_filter_linear.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/input/touchscreen/ts_filter_linear.h b/include/linux/input/touchscreen/ts_filter_linear.h new file mode 100644 index 00000000000..6f5e8307456 --- /dev/null +++ b/include/linux/input/touchscreen/ts_filter_linear.h @@ -0,0 +1,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 |