Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250525
b: refs/heads/master
c: 891e376
h: refs/heads/master
i:
  250523: fc01b45
v: v3
  • Loading branch information
Thierry Reding authored and Dmitry Torokhov committed May 17, 2011
1 parent 969e7b3 commit 81ccda4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 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: 1af38eac8cdb70dbad3086b4f1bf7296eb1b09b1
refs/heads/master: 891e376b1e864519bf7e49fa741f473078318530
7 changes: 4 additions & 3 deletions trunk/drivers/input/touchscreen/tsc2007.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,10 @@ static int __devinit tsc2007_probe(struct i2c_client *client,
input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);

input_set_abs_params(input_dev, ABS_X, 0, MAX_12BIT, 0, 0);
input_set_abs_params(input_dev, ABS_Y, 0, MAX_12BIT, 0, 0);
input_set_abs_params(input_dev, ABS_PRESSURE, 0, MAX_12BIT, 0, 0);
input_set_abs_params(input_dev, ABS_X, 0, MAX_12BIT, pdata->fuzzx, 0);
input_set_abs_params(input_dev, ABS_Y, 0, MAX_12BIT, pdata->fuzzy, 0);
input_set_abs_params(input_dev, ABS_PRESSURE, 0, MAX_12BIT,
pdata->fuzzz, 0);

if (pdata->init_platform_hw)
pdata->init_platform_hw();
Expand Down
3 changes: 3 additions & 0 deletions trunk/include/linux/i2c/tsc2007.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ struct tsc2007_platform_data {
unsigned long poll_delay; /* delay (in ms) after pen-down event
before polling starts */
unsigned long poll_period; /* time (in ms) between samples */
int fuzzx; /* fuzz factor for X, Y and pressure axes */
int fuzzy;
int fuzzz;

int (*get_pendown_state)(void);
void (*clear_penirq)(void); /* If needed, clear 2nd level
Expand Down

0 comments on commit 81ccda4

Please sign in to comment.