Skip to content

Commit 526d6e7

Browse files
PinglinuxJiri Kosina
authored andcommitted
HID: wacom - Add quirks for INTUOSHT2 in range events
INTUOSHT2 in range event is not used to indicate in proximity state. INTUOSHT2 only has one stylus. Signed-off-by: Ping Cheng <[email protected]> Reviewed-by: Jason Gerecke <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent c1b03f5 commit 526d6e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/hid/wacom_wac.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ static int wacom_intuos_inout(struct wacom_wac *wacom)
613613
case 0x885: /* Intuos3 Marker Pen */
614614
case 0x802: /* Intuos4/5 13HD/24HD General Pen */
615615
case 0x804: /* Intuos4/5 13HD/24HD Marker Pen */
616+
case 0x8e2: /* IntuosHT2 pen */
616617
case 0x022:
617618
case 0x100804: /* Intuos4/5 13HD/24HD Art Pen */
618619
case 0x140802: /* Intuos4/5 13HD/24HD Classic Pen */
@@ -680,7 +681,8 @@ static int wacom_intuos_inout(struct wacom_wac *wacom)
680681

681682
/* in Range */
682683
if ((data[1] & 0xfe) == 0x20) {
683-
wacom->shared->stylus_in_proximity = true;
684+
if (features->type != INTUOSHT2)
685+
wacom->shared->stylus_in_proximity = true;
684686

685687
/* in Range while exiting */
686688
if (wacom->reporting_data) {

0 commit comments

Comments
 (0)