Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183134
b: refs/heads/master
c: 23c239b
h: refs/heads/master
v: v3
  • Loading branch information
Vasily Khoruzhick authored and Dmitry Torokhov committed Feb 20, 2010
1 parent 7a2cd71 commit 4dceeeb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2f09586557ed9b6d50bc8bb5104e70006513bdc2
refs/heads/master: 23c239be223d7427da51656d6f196bde965d9796
30 changes: 16 additions & 14 deletions trunk/drivers/input/touchscreen/s3c2410_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,27 +128,29 @@ static void touch_timer_fire(unsigned long data)

down = get_down(data0, data1);

if (ts.count == (1 << ts.shift)) {
ts.xp >>= ts.shift;
ts.yp >>= ts.shift;
if (down) {
if (ts.count == (1 << ts.shift)) {
ts.xp >>= ts.shift;
ts.yp >>= ts.shift;

dev_dbg(ts.dev, "%s: X=%lu, Y=%lu, count=%d\n",
__func__, ts.xp, ts.yp, ts.count);
dev_dbg(ts.dev, "%s: X=%lu, Y=%lu, count=%d\n",
__func__, ts.xp, ts.yp, ts.count);

input_report_abs(ts.input, ABS_X, ts.xp);
input_report_abs(ts.input, ABS_Y, ts.yp);
input_report_abs(ts.input, ABS_X, ts.xp);
input_report_abs(ts.input, ABS_Y, ts.yp);

input_report_key(ts.input, BTN_TOUCH, 1);
input_sync(ts.input);
input_report_key(ts.input, BTN_TOUCH, 1);
input_sync(ts.input);

ts.xp = 0;
ts.yp = 0;
ts.count = 0;
}
ts.xp = 0;
ts.yp = 0;
ts.count = 0;
}

if (down) {
s3c_adc_start(ts.client, 0, 1 << ts.shift);
} else {
ts.xp = 0;
ts.yp = 0;
ts.count = 0;

input_report_key(ts.input, BTN_TOUCH, 0);
Expand Down

0 comments on commit 4dceeeb

Please sign in to comment.