From: Benjamin Tissoires Date: Thu, 22 Aug 2013 12:51:07 +0000 (+0200) Subject: HID: Use hid_parser for pre-scanning the report descriptors X-Git-Tag: v3.12-rc1~125^2~1^4~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dc8fc083dbfeede7b63a0c07581192e97711365;p=pandora-kernel.git HID: Use hid_parser for pre-scanning the report descriptors The Win 8 detection is sufficiently complex to warrant use of the full parser code, in spite of the inferred memory usage. Therefore, we can use the existing HID parser in hid-core for hid_scan_report() by re-using the code from hid_open_report(). hid_parser_global, hid_parser_local and hid_parser_reserved does not have any side effects. We just need to reimplement the MAIN_ITEM callback to have a proper parsing without side effects. Signed-off-by: Benjamin Tissoires Reviewed-by: Henrik Rydberg Tested-by: Srinivas Pandruvada Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed