]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ALPS - clean up code for SS5 hardware
authorPaul Donohue <linux-kernel@PaulSD.com>
Tue, 29 Nov 2016 04:16:21 +0000 (20:16 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 29 Nov 2016 04:24:07 +0000 (20:24 -0800)
commitd1b916125a63f11a51602d2e6078673bdce4d7ac
tree80d5e66a08da765022c63e2645c737bfdf09ba31
parentd3c5e8f5b7333c7e43a2ecb8f217076a5d6a5dd9
Input: ALPS - clean up code for SS5 hardware

The return value of alps_get_pkt_id_ss4_v2() should really be "enum
SS4_PACKET_ID", not "unsigned char".  Correct this.

Also, most of the Alps SS5 (SS4 v2) packet byte parsing code is implemented
using macros, but there are a few places where bytes are directly
manipulated in alps.c.  For consistency, migrate the rest of these to
macros.

Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Paul Donohue <linux-kernel@PaulSD.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/alps.c
drivers/input/mouse/alps.h