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)
commit9e2c327ee85e37264a1e04109efc7b97844afd0b
treede71da9343b40314c4f47c6da009959e5ac8d4a5
parent4c2f503aade27ebf12f5733a583d711f99dc5ec1
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