]> git.baikalelectronics.ru Git - kernel.git/commit
HID: rmi: make compututation of the address of Query 12 more careful
authorAndrew Duggan <aduggan@synaptics.com>
Fri, 11 Jul 2014 21:35:50 +0000 (14:35 -0700)
committerJiri Kosina <jkosina@suse.cz>
Tue, 29 Jul 2014 09:08:41 +0000 (11:08 +0200)
commit2e69cd7955894f0baec0c4c634ef44f4ef7f07c5
treede71da9343b40314c4f47c6da009959e5ac8d4a5
parent8c421d94960f36aaca618c4cdec2a87a6e70cddf
HID: rmi: make compututation of the address of Query 12 more careful

There are additional queries which are optional and may not be present
depending on the configuration of the firmware. Knowing which queries are
present is needed to properly compute the address of Query 12 and all
subsequent queries. Additional bits in Query 1 are used to indicate the
presence of these optional queries.

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