summaryrefslogtreecommitdiff
path: root/packages/linux/linux-ezx-2.6.21/touchscreen-fix-r0.patch
blob: 9f4ce980ad75081641a141d8e8ba14af19f65b08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

Index: linux-2.6.21/drivers/input/touchscreen/pcap_ts.c
===================================================================
--- linux-2.6.21.orig/drivers/input/touchscreen/pcap_ts.c	2007-04-30 21:55:41.000000000 +0200
+++ linux-2.6.21/drivers/input/touchscreen/pcap_ts.c	2007-04-30 21:55:41.000000000 +0200
@@ -128,10 +128,7 @@
 	if (ret < 0)
 		return ret;
 
-	if (tmp & 0x00400000)
-		return -EIO;
-
-	if (pcap_ts->read_state == COORDINATE) {
+	if (pcap_ts->read_state == COORDINATE && !(tmp & 0x00400000)) {
 		pcap_ts->x = (tmp & SSP_PCAP_ADD1_VALUE_MASK);
 		pcap_ts->y = (tmp & SSP_PCAP_ADD2_VALUE_MASK)
 						>>SSP_PCAP_ADD2_VALUE_SHIFT;