[PATCH 2/3] Make sure we don't need ts_filter
Sven Rebhan
odinshorse at googlemail.com
Wed Jan 28 19:16:54 CET 2009
From: Sven Rebhan <OdinsHorse at googlemail.com>
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 at googlemail.com>
diff --git a/drivers/input/touchscreen/ts_filter.h b/drivers/input/touchscreen/ts_filter.h
index 5578e93..3746e45 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
--
1.6.0.6
More information about the openmoko-kernel
mailing list