Skip to content

Commit

Permalink
Input: tsc2007 - do not read coordinates during probe
Browse files Browse the repository at this point in the history
Don't read coordinates during probe of the driver, just power down
the controller and wait for interrupts.

Signed-off-by: Richard Röjfors<richard.rojfors.ext@mocean-labs.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Richard Röjfors authored and Dmitry Torokhov committed Jul 26, 2009
1 parent cad065f commit 703490f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/input/touchscreen/tsc2007.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ static int tsc2007_read_values(struct tsc2007 *tsc)
tsc->tc.z1 = tsc2007_xfer(tsc, READ_Z1);
tsc->tc.z2 = tsc2007_xfer(tsc, READ_Z2);

/* power down */
/* Prepare for next touch reading - power down ADC, enable PENIRQ */
tsc2007_xfer(tsc, PWRDOWN);

return 0;
Expand Down Expand Up @@ -311,7 +311,8 @@ static int __devinit tsc2007_probe(struct i2c_client *client,

i2c_set_clientdata(client, ts);

tsc2007_read_values(ts);
/* Prepare for touch readings - power down ADC and enable PENIRQ */
tsc2007_xfer(ts, PWRDOWN);

return 0;

Expand Down

0 comments on commit 703490f

Please sign in to comment.