Input: sentelic - refactor code for upcoming new hardware support
authorTai-hwa Liang <avatar@sentelic.com>
Mon, 26 Mar 2012 00:15:03 +0000 (17:15 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 26 Mar 2012 00:18:05 +0000 (17:18 -0700)
commit3ac1780f9e6ed212e56d4132e997551297a97112
tree9225ac666a7716a9d6329c70852fd65b7f144204
parentd8ee4a1c90529ed06e1aa43d034986649f7b670b
Input: sentelic - refactor code for upcoming new hardware support

- Move event bits setup code into a separate function,
  fsp_set_input_params(), so that we can perform hardware-specific settings
  in the future;
- Take hardware version information into account when activating
  protocol;
- Remove button information from boot message as it's somewhat confusing
  and is only for internal processing. While there, also move button
  retrieval code to be a part of protocol activation process.

Signed-off-by: Tai-hwa Liang <avatar@sentelic.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/sentelic.c
drivers/input/mouse/sentelic.h