aboutsummaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorSven Rebhan <OdinsHorse@googlemail.com>2009-01-28 18:24:35 +0000
committerAndy Green <agreen@octopus.localdomain>2009-01-28 18:24:35 +0000
commit43954efa52562dea2fdcdcc6af75663c6b0e2c27 (patch)
tree9b4d3644de9ae17b9954d8cb88f71c9d9568e1d1 /drivers/input
parent8f272fa834605eecf52a57fb6e00185ab5ed8102 (diff)
Make sure we don't need ts_filter
If the filtering is switched off, we need a substitution for the two missing functions. So simply define some placeholders. Signed-off-by: Sven Rebhan <odinshorse@googlemail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/ts_filter.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/ts_filter.h b/drivers/input/touchscreen/ts_filter.h
index 5578e936b91..3746e45bccc 100644
--- a/drivers/input/touchscreen/ts_filter.h
+++ b/drivers/input/touchscreen/ts_filter.h
@@ -45,6 +45,7 @@ struct ts_filter {
* array and fills in ->next pointers to create the chain.
*/
+#ifdef CONFIG_TOUCHSCREEN_FILTER
extern int ts_filter_create_chain(struct platform_device *pdev,
struct ts_filter_api **api, void **config,
struct ts_filter **arr, int count_coords);
@@ -53,5 +54,9 @@ extern int ts_filter_create_chain(struct platform_device *pdev,
extern void ts_filter_destroy_chain(struct platform_device *pdev,
struct ts_filter **arr);
+#else
+#define ts_filter_create_chain(pdev, api, config, arr, count_coords) (0)
+#define ts_filter_destroy_chain(pdev, arr) do { } while (0)
+#endif
#endif