projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f2b23a
)
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
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/gt819.c
b/drivers/input/touchscreen/gt819.c
index 76de84ba119a095e34dd0c3344dc5d4fd234dc00..8c0188b0082714dad0edd2baf13f6e827a3875a8 100755
(executable)
--- 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);