mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
HID: wacom: bits shifted too much for 9th and 10th buttons
commitce06760ba4upstream. Cintiq 12 has 10 expresskey buttons. The bit shift for the last two buttons were off by 5. Fixes:c7f0522("HID: wacom: Slim down wacom_intuos_pad processing") Signed-off-by: Ping Cheng <ping.cheng@wacom.com> Tested-by: Matthieu Robin <matthieu@macolu.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Cc: Jason Gerecke <killertofu@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
953f5e7c62
commit
50b27486ae
@@ -559,8 +559,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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user