OSDN Git Service

Input: atmel_mxt_ts - split out touchpad initialisation logic
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Mon, 6 Apr 2015 20:10:30 +0000 (13:10 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 6 Apr 2015 20:37:32 +0000 (13:37 -0700)
commitb6d2d3289f84e9c7449dff04fb959e29207acd80
tree509c2f7359dec6c3cfadec6196baab452ca576ce
parentb23157dc74272ac8ebffd1a566e3e822dbc3e65f
Input: atmel_mxt_ts - split out touchpad initialisation logic

If the "linux,gpio-keymap" DT property is defined, the T19 keys are
configured and the device is setup as a touchpad rather than a touchscreen.
The logic is part of the input device initialization routine but it can be
factored out to its own function to simplify the former.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c