OSDN Git Service

input: it7258_ts_i2c: Do not put driver in infinite loop
authorShantanu Jain <shjain@codeaurora.org>
Mon, 24 Aug 2015 15:17:01 +0000 (20:47 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Wed, 3 Aug 2016 05:42:43 +0000 (22:42 -0700)
commit11c338c71093936cabb097e73174e2c17177552a
treed41c2b7a7f22980590fb248e6eb7a58e44198ff5
parentec9fd7cc51bcc302aefe26e4cbfc7f4e2590918d
input: it7258_ts_i2c: Do not put driver in infinite loop

Do not put the ITE tech touchscreen driver in infinite
loop while probing.
Sometimes, when there is multiple touchscreen support on the
same snapdragon device, then the dynamic detection is used
to confirm which touchscreen is connected to the device.
So, this change will not make the CPUs to get hogged with
infinite loop of ITE tech driver.
Now it can easily get out of probe with error path releasing
the resources properly.

Change-Id: Ib9905017fc18999e7ab7c9cb8bc1af398f5f9791
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
drivers/input/touchscreen/it7258_ts_i2c.c