Input: atmel_mxt_ts - move input device init into separate function
authorNick Dyer <nick.dyer@itdev.co.uk>
Wed, 23 Jul 2014 19:21:26 +0000 (12:21 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 23 Jul 2014 20:25:10 +0000 (13:25 -0700)
commit7a53d60926714541e2250b7c55100883cdcaf787
tree8c8b436283c38ec8d7dcccfb2020ff369c83bdbc
parentdd24dcf566d0787297953bcaa3a7739586535a33
Input: atmel_mxt_ts - move input device init into separate function

It is useful to initialise the input device later:
- Screen parameters may not be not known yet, for instance if waiting for
  firmware loader to return.
- Device may be in bootloader mode on probe (but could still be recovered by
  firmware download).

In addition, later devices have a different touchscreen object (T100) which
requires handling differently.

This also reduces the complexity of the probe function.

Signed-off-by: Nick Dyer <nick.dyer@itdev.co.uk>
Acked-by: Yufeng Shen <miletus@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c