]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ALPS - use function pointers for different protocol handlers
authorKevin Cernekee <cernekee@gmail.com>
Thu, 14 Feb 2013 06:22:08 +0000 (22:22 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 14 Feb 2013 17:18:01 +0000 (09:18 -0800)
commit8abc9edfefcf11232b0f2734a1265221163c21f4
tree4fbce336278f640e92f98b58ddb216bad0161cfe
parent26f99750c37729f250bc9810aa62202b61d604af
Input: ALPS - use function pointers for different protocol handlers

In anticipation of adding more ALPS protocols and more per-device quirks,
use function pointers instead of switch statements to call functions that
differ from one device to the next.

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
drivers/input/mouse/alps.h