]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
HID: rmi: fix masks for x and w_x data
authorAndrew Duggan <aduggan@synaptics.com>
Thu, 15 May 2014 20:52:29 +0000 (13:52 -0700)
committerJiri Kosina <jkosina@suse.cz>
Fri, 16 May 2014 09:12:46 +0000 (11:12 +0200)
commit876e7a8a111a4277ea35e5314a5fafc18346d3ca
tree1f6021197542d1b6757bf8384e5cc0af3dbbde1e
parentb668fdce41858feea6052419796beb36f1c60540
HID: rmi: fix masks for x and w_x data

The F11 data in the HID report contains four bits of data for w_x and the least significant bits
of x. Currently only the first three bits are being used which is resulting in small jumps in
the position data on the x axis and in the w_x data.

Signed-off-by: Andrew Duggan <aduggan@synaptics.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-rmi.c