]> git.baikalelectronics.ru Git - kernel.git/commit
Input: surface3_spi - add surface pen support for Surface 3
authorStephen Just <stephenjust@gmail.com>
Fri, 27 May 2016 23:29:39 +0000 (16:29 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 27 May 2016 23:33:34 +0000 (16:33 -0700)
commita417460012e4dec53294b9fb19553f3849b78ab9
treee7b29fa306d0d2f093d2042d2cd92f47783c0cfc
parent51bc6e17557eb95608e7837df59ebfceef6f8181
Input: surface3_spi - add surface pen support for Surface 3

This change creates a second input device which will handle input from
a Surface Pen. The Surface Pen supplies a different packet header than
touch events, so it is simple to handle one or the other.

This patch handles both the newer Surface Pen with one button, and the
older variant with a second button to switch to Eraser mode.

Signed-off-by: Stephen Just <stephenjust@gmail.com>
Reviewed-and-tested-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/surface3_spi.c