]> git.baikalelectronics.ru Git - kernel.git/commit
Input: alps - report pressure of v3 and v7 trackstick
authorPali Rohár <pali.rohar@gmail.com>
Mon, 26 Mar 2018 22:31:58 +0000 (15:31 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 27 Mar 2018 00:03:05 +0000 (17:03 -0700)
commit070dec250a3d540dc94d3ad0d633f398fcadf0e8
treef0c105b42fc4d726bfb97a70ef63acb5ba9d8865
parente1580a064c02a35d2c81889f52ba1aaac74689eb
Input: alps - report pressure of v3 and v7 trackstick

ALPS v3 and v7 packet formats reports trackstick pressure. This information
is already parsed in unused "z" variable.

ALPS SS4 S2 devices already reports trackstick pressure as ABS_PRESSURE
attribute, therefore reports pressure in the same way also for v3 and v7.

This patch also updates parsing v3 pressure information, it is also stored
in 7 bits.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/alps.c