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)
committerTim Gardner <tim.gardner@canonical.com>
Fri, 13 Apr 2012 12:42:26 +0000 (06:42 -0600)
commit6f7032dea4a663fc5fbafc75bc8a7812ff673bcd
tree1f2cadd2bf8edef6249330a7524f77e096671042
parent687a85e725577e71e8ee67f3b808bc225f075f20
Input: sentelic - refactor code for upcoming new hardware support

BugLink: http://bugs.launchpad.net/bugs/969334

- 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>
(cherry picked from commit 3ac1780f9e6ed212e56d4132e997551297a97112)

Signed-off-by: Eric Miao <eric.miao@canonical.com>
Acked-by: Leann Ogasawara <leann.ogasawara@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/input/mouse/sentelic.c
drivers/input/mouse/sentelic.h