aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/ts_filter.h56
-rw-r--r--include/linux/ts_filter_group.h39
-rw-r--r--include/linux/ts_filter_linear.h64
-rw-r--r--include/linux/ts_filter_mean.h34
-rw-r--r--include/linux/ts_filter_median.h36
5 files changed, 0 insertions, 229 deletions
diff --git a/include/linux/ts_filter.h b/include/linux/ts_filter.h
deleted file mode 100644
index 167104482dd..00000000000
--- a/include/linux/ts_filter.h
+++ /dev/null
@@ -1,56 +0,0 @@
-#ifndef __TS_FILTER_H__
-#define __TS_FILTER_H__
-
-/*
- * touchscreen filter
- *
- * (c) 2008 Andy Green <andy@openmoko.com>
- */
-
-#include <linux/platform_device.h>
-
-#define MAX_TS_FILTER_CHAIN 4 /* max filters you can chain up */
-#define MAX_TS_FILTER_COORDS 3 /* X, Y and Z (pressure) */
-
-struct ts_filter;
-
-/* operations that a filter can perform
- */
-struct ts_filter_api {
- struct ts_filter * (*create)(struct platform_device *pdev, void *config,
- int count_coords);
- void (*destroy)(struct platform_device *pdev, struct ts_filter *filter);
- void (*clear)(struct ts_filter *filter);
- int (*process)(struct ts_filter *filter, int *coords);
- void (*scale)(struct ts_filter *filter, int *coords);
-};
-
-/* this is the common part of all filters, the result
- * we use this type as an otherwise opaque handle on to
- * the actual filter. Therefore you need one of these
- * at the start of your actual filter struct
- */
-
-struct ts_filter {
- struct ts_filter *next; /* next in chain */
- struct ts_filter_api *api; /* operations to use for this object */
- int count_coords;
- int coords[MAX_TS_FILTER_COORDS];
-};
-
-/*
- * helper to create a filter chain from array of API pointers and
- * array of config ints... leaves pointers to created filters in list
- * array and fills in ->next pointers to create the chain
- */
-
-extern int ts_filter_create_chain(struct platform_device *pdev,
- struct ts_filter_api **api, void **config,
- struct ts_filter **list, int count_coords);
-
-/* helper to destroy a whole chain from the list of filter pointers */
-
-extern void ts_filter_destroy_chain(struct platform_device *pdev,
- struct ts_filter **list);
-
-#endif
diff --git a/include/linux/ts_filter_group.h b/include/linux/ts_filter_group.h
deleted file mode 100644
index 1e74c8dc741..00000000000
--- a/include/linux/ts_filter_group.h
+++ /dev/null
@@ -1,39 +0,0 @@
-#ifndef __TS_FILTER_GROUP_H__
-#define __TS_FILTER_GROUP_H__
-
-#include <linux/ts_filter.h>
-
-/*
- * Touchscreen group filter.
- *
- * Copyright (C) 2008 by Openmoko, Inc.
- * Author: Nelson Castillo <arhuaco@freaks-unidos.net>
- *
- */
-
-struct ts_filter_group_configuration {
- int extent;
- int close_enough;
- int threshold;
- int attempts;
-};
-
-struct ts_filter_group {
- struct ts_filter tsf;
- struct ts_filter_group_configuration *config;
-
- int N; /* How many samples we have */
- int *samples[MAX_TS_FILTER_COORDS]; /* the samples, our input */
-
- int *group_size; /* used for temporal computations */
- int *sorted_samples; /* used for temporal computations */
-
- int range_max[MAX_TS_FILTER_COORDS]; /* max computed ranges */
- int range_min[MAX_TS_FILTER_COORDS]; /* min computed ranges */
-
- int tries_left; /* We finish if we don't get enough samples */
-};
-
-extern struct ts_filter_api ts_filter_group_api;
-
-#endif
diff --git a/include/linux/ts_filter_linear.h b/include/linux/ts_filter_linear.h
deleted file mode 100644
index dab53907a90..00000000000
--- a/include/linux/ts_filter_linear.h
+++ /dev/null
@@ -1,64 +0,0 @@
-#ifndef __TS_FILTER_LINEAR_H__
-#define __TS_FILTER_LINEAR_H__
-
-#include <linux/ts_filter.h>
-#include <linux/kobject.h>
-
-/*
- * touchscreen linear filter.
- *
- * Copyright (C) 2008 by Openmoko, Inc.
- * Author: Nelson Castillo <arhuaco@freaks-unidos.net>
- *
- */
-
-#define TS_FILTER_LINEAR_NCONSTANTS 7
-
-/* sysfs */
-
-struct ts_filter_linear;
-
-struct const_obj {
- struct ts_filter_linear *tsfl;
- struct kobject kobj;
-};
-
-#define to_const_obj(x) container_of(x, struct const_obj, kobj)
-
-struct const_attribute {
- struct attribute attr;
- ssize_t (*show)(struct const_obj *const, struct const_attribute *attr,
- char *buf);
- ssize_t (*store)(struct const_obj *const, struct const_attribute *attr,
- const char *buf, size_t count);
-};
-
-#define to_const_attr(x) container_of(x, struct const_attribute, attr)
-
-/* filter configuration */
-
-struct ts_filter_linear_configuration {
- int constants[TS_FILTER_LINEAR_NCONSTANTS];
- int coord0;
- int coord1;
-};
-
-/* the filter */
-
-struct ts_filter_linear {
- struct ts_filter tsf;
- struct ts_filter_linear_configuration *config;
-
- int constants[TS_FILTER_LINEAR_NCONSTANTS];
-
- /* sysfs */
- struct const_obj c_obj;
- struct kobj_type const_ktype;
- struct const_attribute kattrs[TS_FILTER_LINEAR_NCONSTANTS];
- struct attribute *attrs[TS_FILTER_LINEAR_NCONSTANTS + 1];
- char attr_names[TS_FILTER_LINEAR_NCONSTANTS][2];
-};
-
-extern struct ts_filter_api ts_filter_linear_api;
-
-#endif
diff --git a/include/linux/ts_filter_mean.h b/include/linux/ts_filter_mean.h
deleted file mode 100644
index 46ff01a4c82..00000000000
--- a/include/linux/ts_filter_mean.h
+++ /dev/null
@@ -1,34 +0,0 @@
-#ifndef __TS_FILTER_MEAN_H__
-#define __TS_FILTER_MEAN_H__
-
-#include <linux/ts_filter.h>
-
-/*
- * touchscreen filter
- *
- * mean
- *
- * (c) 2008 Andy Green <andy@openmoko.com>
- */
-
-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];
-};
-
-extern struct ts_filter_api ts_filter_mean_api;
-
-#endif
diff --git a/include/linux/ts_filter_median.h b/include/linux/ts_filter_median.h
deleted file mode 100644
index d81642883f7..00000000000
--- a/include/linux/ts_filter_median.h
+++ /dev/null
@@ -1,36 +0,0 @@
-#ifndef __TS_FILTER_MEDIAN_H__
-#define __TS_FILTER_MEDIAN_H__
-
-#include <linux/ts_filter.h>
-
-/*
- * touchscreen filter
- *
- * median
- *
- * (c) 2008 Andy Green <andy@openmoko.com>
- */
-
-struct ts_filter_median_configuration {
- int extent;
- int midpoint;
- int decimation_threshold;
- int decimation_above;
- int decimation_below;
-};
-
-struct ts_filter_median {
- struct ts_filter tsf;
- struct ts_filter_median_configuration *config;
-
- int decimation_count;
- int last_issued[MAX_TS_FILTER_COORDS];
- int valid; /* how many samples in the sort buffer are valid */
- int *sort[MAX_TS_FILTER_COORDS]; /* samples taken for median */
- int *fifo[MAX_TS_FILTER_COORDS]; /* samples taken for median */
- int pos; /* where we are in the fifo sample memory */
-};
-
-extern struct ts_filter_api ts_filter_median_api;
-
-#endif