From: Benjamin Tissoires Date: Wed, 14 Nov 2012 15:59:16 +0000 (+0100) Subject: HID: add usage_index in struct hid_usage. X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~36^2^4~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f262d1fa2c651a5e2f92b6aee8779597631cd5d4;p=pandora-kernel.git HID: add usage_index in struct hid_usage. Currently, there is no way to know the index of the current field in the .input_mapping and .event callbacks when this field is inside an array of HID fields. This patch adds this index to the struct hid_usage so that this information is available to input_mapping and event callbacks. Signed-off-by: Benjamin Tissoires Acked-by: Jiri Kosina Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed