]> Pileus Git - ~andy/linux/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)
commit24af5cb95f1b93c6c72a73113494ace4bcbee5a2
tree4fbce336278f640e92f98b58ddb216bad0161cfe
parentb5d6b851eab7f346ea5e69f46247b363b32b3670
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