Thread (19 messages) 19 messages, 4 authors, 2010-10-19
STALE5743d

[PATCH 2/4] Input: ads7846 - add a include header to prevent building fails

From: Jason Wang <hidden>
Date: 2010-09-16 10:47:57
Subsystem: input (keyboard, mouse, joystick, touchscreen) drivers, the rest · Maintainers: Dmitry Torokhov, Linus Torvalds

After we switch this driver to use thread IRQ, we introduce some
kthread macros, when we build this driver, we will get errors like
that:
ds7846.c: In function 'ads7846_stop':
ads7846.c:205: error: 'TASK_NORMAL' undeclared (first use in ...)
ads7846.c:205: error: (Each undeclared identifier is ...)
ads7846.c:205: error: for each function it appears in.)

Here add a header file to fix this error.

Signed-off-by: Jason Wang <redacted>
---
 drivers/input/touchscreen/ads7846.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c
index d1fc8ef..5ddaeea 100644
--- a/drivers/input/touchscreen/ads7846.c
+++ b/drivers/input/touchscreen/ads7846.c
@@ -21,6 +21,7 @@
 #include <linux/hwmon.h>
 #include <linux/init.h>
 #include <linux/err.h>
+#include <linux/sched.h>
 #include <linux/delay.h>
 #include <linux/input.h>
 #include <linux/interrupt.h>
-- 
1.5.6.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help