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

Commit ce06760b authored by Ping Cheng's avatar Ping Cheng Committed by Jiri Kosina
Browse files

HID: wacom: bits shifted too much for 9th and 10th buttons



Cintiq 12 has 10 expresskey buttons. The bit shift for the last
two buttons were off by 5.

Fixes: c7f0522a ("HID: wacom: Slim down wacom_intuos_pad processing")

Signed-off-by: default avatarPing Cheng <ping.cheng@wacom.com>
Tested-by: default avatarMatthieu Robin <matthieu@macolu.org>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent b42a362e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -567,8 +567,8 @@ static int wacom_intuos_pad(struct wacom_wac *wacom)
				keys = data[9] & 0x07;
			}
		} else {
			buttons = ((data[6] & 0x10) << 10) |
			          ((data[5] & 0x10) << 9)  |
			buttons = ((data[6] & 0x10) << 5)  |
			          ((data[5] & 0x10) << 4)  |
			          ((data[6] & 0x0F) << 4)  |
			          (data[5] & 0x0F);
		}