Input: ALPS - introduce helper function for repeated commands
authorKevin Cernekee <cernekee@gmail.com>
Thu, 14 Feb 2013 06:19:01 +0000 (22:19 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 14 Feb 2013 17:17:52 +0000 (09:17 -0800)
commit24ba9707829818daab711eed7e41313d5e56d0b4
treed0b765cca4a754b8f5c53f4dfddc91a092540d5a
parent2e992cc030d8e4e42632bcc9e16605e629886778
Input: ALPS - introduce helper function for repeated commands

Several ALPS driver init sequences repeat a command three times, then
issue PSMOUSE_CMD_GETINFO to read the result.  Move this into a helper
function to simplify the code.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Tested-by: Dave Turvene <dturvene@dahetral.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/alps.c