CHROMIUM: Input: atmel_mxt_ts - refactor input device creation
authorDaniel Kurtz <djkurtz@chromium.org>
Fri, 27 Apr 2012 14:15:16 +0000 (22:15 +0800)
committerGrant Grundler <grundler@google.com>
Thu, 24 May 2012 22:12:11 +0000 (15:12 -0700)
commit48a3e21bc0bb5e6f16ac7db749ab50bb00f96b32
treea65c6430fe081852f2ea7424849e3699aaba7ecb
parentb4d1b0cfabcf2307a3e29ae01c38cb32e4e64884
CHROMIUM: Input: atmel_mxt_ts - refactor input device creation

Move input device initialization to its own helper function.
This is in preparation of a future patch that makes input device
conditional on being able to read device properties, which implies
that the device is not in its bootloader.

Just a refactor; no functional change.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
BUG=chrome-os-partner:9103
TEST=builds clean; input device created as before.

Change-Id: Ife128dc63a4c23c162ed116c21cc0dd3d076a559
Reviewed-on: https://gerrit.chromium.org/gerrit/20844
Commit-Ready: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
drivers/input/touchscreen/atmel_mxt_ts.c