From 76aad825a6ec29cfd1d9f6a4b94c591fb819e241 Mon Sep 17 00:00:00 2001 From: Matt Hsu Date: Mon, 9 Feb 2009 13:03:30 +0000 Subject: This patch fixes the following items on pcap7200 driver, -do the parameter check of setting operating mode. -add device haeder file. Signed-off-by: Matt Hsu --- drivers/input/touchscreen/pcap7200_ts.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/input/touchscreen/pcap7200_ts.c b/drivers/input/touchscreen/pcap7200_ts.c index 70f7d8935d9..73e29b84d55 100644 --- a/drivers/input/touchscreen/pcap7200_ts.c +++ b/drivers/input/touchscreen/pcap7200_ts.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include <../drivers/input/touchscreen/ts_filter.h> @@ -114,6 +115,8 @@ static int __set_op_mode(struct pcap7200_data *pcap, u_int8_t val) mutex_lock(&pcap->lock); + val = val & 0x03; + /* this chip has an issue. * you need to give wakeup call for 3 times if it's * in sleep mode. -- cgit v1.2.3