input: touchscreen: don't allow ITE tech driver to do infinite i2c checks
Don't allow ITE tech driver to check the status of the controller forever
before any i2c read/write, instead make it to 10 times only.
In case of firmware flashing and external calibration features, this is
made to 500 times.
This is a propagated patch from 3.18 kernel
'commit
5e8c98c6705b ("input: touchscreen: don't allow ITE tech driver
to do infinite i2c checks")'
Change-Id: I88e024700de43cc9f712fd7fa509fcb387f9cd21
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>