diff options
author | Richard Röjfors <richard.rojfors.ext@mocean-labs.com> | 2009-07-25 02:14:17 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-07-26 14:21:03 -0400 |
commit | 703490ff7eaff03e412683da3d8367b5190a71ca (patch) | |
tree | 71e4b3b41dd0d70a859d9137b656fbfb0d756bbb /drivers/input/touchscreen | |
parent | cad065fd1e95003444e8528f801f52164cb78561 (diff) |
Input: tsc2007 - do not read coordinates during probe
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>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/tsc2007.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/tsc2007.c b/drivers/input/touchscreen/tsc2007.c index 8105bf640151..f710af4d0ff7 100644 --- a/drivers/input/touchscreen/tsc2007.c +++ b/drivers/input/touchscreen/tsc2007.c | |||
@@ -184,7 +184,7 @@ static int tsc2007_read_values(struct tsc2007 *tsc) | |||
184 | tsc->tc.z1 = tsc2007_xfer(tsc, READ_Z1); | 184 | tsc->tc.z1 = tsc2007_xfer(tsc, READ_Z1); |
185 | tsc->tc.z2 = tsc2007_xfer(tsc, READ_Z2); | 185 | tsc->tc.z2 = tsc2007_xfer(tsc, READ_Z2); |
186 | 186 | ||
187 | /* power down */ | 187 | /* Prepare for next touch reading - power down ADC, enable PENIRQ */ |
188 | tsc2007_xfer(tsc, PWRDOWN); | 188 | tsc2007_xfer(tsc, PWRDOWN); |
189 | 189 | ||
190 | return 0; | 190 | return 0; |
@@ -311,7 +311,8 @@ static int __devinit tsc2007_probe(struct i2c_client *client, | |||
311 | 311 | ||
312 | i2c_set_clientdata(client, ts); | 312 | i2c_set_clientdata(client, ts); |
313 | 313 | ||
314 | tsc2007_read_values(ts); | 314 | /* Prepare for touch readings - power down ADC and enable PENIRQ */ |
315 | tsc2007_xfer(ts, PWRDOWN); | ||
315 | 316 | ||
316 | return 0; | 317 | return 0; |
317 | 318 | ||