Input: ALPS - make the V3 packet field decoder "pluggable"
authorKevin Cernekee <cernekee@gmail.com>
Thu, 14 Feb 2013 06:26:11 +0000 (22:26 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 14 Feb 2013 17:18:25 +0000 (09:18 -0800)
commitf85e5001cce0298a44e35e2f8acbf9abeadb6c03
tree0dc2551cc497f6049e4e397e35fb1d6778c7d721
parent7a9f73e75cd0dcd320166aa340141893bd1848d1
Input: ALPS - make the V3 packet field decoder "pluggable"

A number of different ALPS touchpad protocols can reuse
alps_process_touchpad_packet_v3() with small tweaks to the bitfield
decoding.  Create a new priv->decode_fields() callback that handles the
per-model differences.

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