]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
HID: wacom: add support of the Pen of the Bamboo Pad
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Mon, 5 Jan 2015 21:32:13 +0000 (16:32 -0500)
committerJiri Kosina <jkosina@suse.cz>
Tue, 6 Jan 2015 09:08:44 +0000 (10:08 +0100)
Bamboo Pads are using the generic processing but their report descriptors
differ from the ISDv* line. The pen fields are marked with the .physical
as Digitizer_Pen, which makes also sense.

Add this field to the checks and enable for free Bamboo Pads.

Reported-by: Josep Sanchez Ferreres <josep.sanchez.ferreres@est.fib.upc.edu>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: Jason Gerecke <killertofu@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.h

index 7436f2be433d6c054bb71504b54eb60c330dabe0..7afd9294927aeffb29ceec3c5af30332bce72f40 100644 (file)
@@ -74,6 +74,7 @@
 
 #define WACOM_PEN_FIELD(f)     (((f)->logical == HID_DG_STYLUS) || \
                                 ((f)->physical == HID_DG_STYLUS) || \
+                                ((f)->physical == HID_DG_PEN) || \
                                 ((f)->application == HID_DG_PEN))
 #define WACOM_FINGER_FIELD(f)  (((f)->logical == HID_DG_FINGER) || \
                                 ((f)->physical == HID_DG_FINGER) || \