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>
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;
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;