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