From 43954efa52562dea2fdcdcc6af75663c6b0e2c27 Mon Sep 17 00:00:00 2001 From: Sven Rebhan Date: Wed, 28 Jan 2009 18:24:35 +0000 Subject: 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 --- drivers/input/touchscreen/ts_filter.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers/input') 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 -- cgit v1.2.3