newton:fix gt819 drop point
author蔡枫 <cf@rock-chips.com>
Tue, 9 Aug 2011 13:21:01 +0000 (21:21 +0800)
committer蔡枫 <cf@rock-chips.com>
Tue, 9 Aug 2011 13:21:01 +0000 (21:21 +0800)
drivers/input/touchscreen/gt819.c

index 76de84ba119a095e34dd0c3344dc5d4fd234dc00..8c0188b0082714dad0edd2baf13f6e827a3875a8 100755 (executable)
@@ -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);