Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71348162 authored by Ping Cheng's avatar Ping Cheng Committed by Dmitry Torokhov
Browse files

Input: wacom - fix wacom->shared guards for dual input devices



features->quirks can have multiple bits set. For dual input, we only
need to check WACOM_QUIRK_MULTI_INPUT.

Reviewed-by: default avatarJason Gerecke <killertofu@gmail.com>
Signed-off-by: default avatarPing Cheng <pingc@wacom.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 02300bd6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -331,7 +331,7 @@ static int wacom_intuos_inout(struct wacom_wac *wacom)

	/* Enter report */
	if ((data[1] & 0xfc) == 0xc0) {
		if (features->quirks == WACOM_QUIRK_MULTI_INPUT)
		if (features->quirks & WACOM_QUIRK_MULTI_INPUT)
			wacom->shared->stylus_in_proximity = true;

		/* serial number of the tool */
@@ -436,7 +436,7 @@ static int wacom_intuos_inout(struct wacom_wac *wacom)

	/* Exit report */
	if ((data[1] & 0xfe) == 0x80) {
		if (features->quirks == WACOM_QUIRK_MULTI_INPUT)
		if (features->quirks & WACOM_QUIRK_MULTI_INPUT)
			wacom->shared->stylus_in_proximity = false;

		/*