HID: rmi: check for the existence of some optional queries before reading query 12
authorAndrew Duggan <aduggan@synaptics.com>
Fri, 2 May 2014 18:14:16 +0000 (11:14 -0700)
committerJiri Kosina <jkosina@suse.cz>
Tue, 13 May 2014 14:37:43 +0000 (16:37 +0200)
commitf15475c397f496c0907be5e95f8556c8f5908d54
tree601d1433558f22197b47b8f4baba92fbc30aed3b
parentb89f991af08244121e69a3ee90cfa397598cf3ab
HID: rmi: check for the existence of some optional queries before reading query 12

The rmi4 spec defines some optional query registers in F11 which appear before
query 12. This patch checks for the existence of some of the lesser used queries to
 compute the location of query12 and all subsequent query registers.

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