Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106911
b: refs/heads/master
c: 9460b65
h: refs/heads/master
i:
  106909: 5db82e1
  106907: d0e8a8e
  106903: ab736d4
  106895: 0c81525
  106879: c36e86c
v: v3
  • Loading branch information
Hans-Christian Egtvedt authored and Dmitry Torokhov committed Jul 23, 2008
1 parent 2dec7f0 commit d9d666b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 494f685775ee4c2f3db4081209f00ff0633243fc
refs/heads/master: 9460b6529d8a0bfabf241ddda8b0e469d219844c
10 changes: 5 additions & 5 deletions trunk/drivers/input/touchscreen/ads7846.c
Original file line number Diff line number Diff line change
Expand Up @@ -517,19 +517,19 @@ static void ads7846_rx(void *ads)
if (x == MAX_12BIT)
x = 0;

if (likely(x && z1)) {
if (ts->model == 7843) {
Rt = ts->pressure_max / 2;
} else if (likely(x && z1)) {
/* compute touch pressure resistance using equation #2 */
Rt = z2;
Rt -= z1;
Rt *= x;
Rt *= ts->x_plate_ohms;
Rt /= z1;
Rt = (Rt + 2047) >> 12;
} else
} else {
Rt = 0;

if (ts->model == 7843)
Rt = ts->pressure_max / 2;
}

/* Sample found inconsistent by debouncing or pressure is beyond
* the maximum. Don't report it to user space, repeat at least
Expand Down

0 comments on commit d9d666b

Please sign in to comment.