From: Andrew Duggan Date: Fri, 2 May 2014 18:14:16 +0000 (-0700) Subject: HID: rmi: check for the existence of some optional queries before reading query 12 X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~6^2^3~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f15475c397f496c0907be5e95f8556c8f5908d54;p=pandora-kernel.git 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 Reviewed-by: Benjamin Tissoires Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed