From: 蔡枫 <cf@rock-chips.com>
Date: Tue, 9 Aug 2011 13:21:01 +0000 (+0800)
Subject: newton:fix gt819 drop point
X-Git-Tag: firefly_0821_release~9772^2~18^2~25
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=38ec5b9c0612b0ef7d6f71b9799c900ee8108dc6;p=firefly-linux-kernel-4.4.55.git

newton:fix gt819 drop point
---

diff --git a/drivers/input/touchscreen/gt819.c b/drivers/input/touchscreen/gt819.c
index 76de84ba119a..8c0188b00827 100755
--- a/drivers/input/touchscreen/gt819.c
+++ b/drivers/input/touchscreen/gt819.c
@@ -447,9 +447,14 @@ static void gt819_queue_work(struct work_struct *work)
 		enable_irq(ts->irq);
 		dev_info(&ts->client->dev, "touch release\n");
 		return; 
+	}	
+	for(i=0;0!=points;)
+	{
+	if(points&0x01)
+		i++;
+	points>>=1;
 	}
-	for(i=0;0!=points;i++)
-		points>>=1;
+	
 	points = i;
 	points_chect = points;
 	ret = gt819_read_regs(ts->client,3, point_data, points*5+1);