]> git.baikalelectronics.ru Git - kernel.git/commit
HID: rmi: The address of query8 must be calculated based on which query registers...
authorAndrew Duggan <aduggan@synaptics.com>
Mon, 8 Dec 2014 23:02:00 +0000 (15:02 -0800)
committerJiri Kosina <jkosina@suse.cz>
Fri, 12 Dec 2014 10:14:55 +0000 (11:14 +0100)
commitd6c29b236470f758f2375822cc6cfb2bfb334f2a
tree9ea1f07d7f20f6be1d22d7a3f930b5bc2ba59c2e
parent576d5ccb6dbae3e6bf979c2d59cc11c3a5ee6fa7
HID: rmi: The address of query8 must be calculated based on which query registers are present

If a touchpad does not report relative data then query 6 will not be present and the address
of query 8 will be one less. This patches calculates the location of query 8 instead of
hardcoding the offset.

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