summaryrefslogtreecommitdiff
path: root/include/linux/hid.h
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2012-09-03 12:28:59 +0200
committerHenrik Rydberg <rydberg@euromail.se>2012-09-19 19:50:20 +0200
commit7e55bdedfa4a72baa0d4fec8d0948cb65342a9a0 (patch)
tree6070fa78d6c1d1d37a3709cf63e65a35d7d95eb4 /include/linux/hid.h
parent9ebf3d7687192923e3d44fdbcd8d9f8375053fb8 (diff)
downloadlwn-7e55bdedfa4a72baa0d4fec8d0948cb65342a9a0.tar.gz
lwn-7e55bdedfa4a72baa0d4fec8d0948cb65342a9a0.zip
HID: Allow more fields in the hid report
Some recent hardware define more than 128 fields in the report descriptor. Increase the limit to 256. This adds another kilobyte of memory per report. Tested-by: Ping Cheng <pingc@wacom.com> Acked-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r--include/linux/hid.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h
index f37da2803005..7e1f37db7582 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -414,7 +414,7 @@ struct hid_field {
__u16 dpad; /* dpad input code */
};
-#define HID_MAX_FIELDS 128
+#define HID_MAX_FIELDS 256
struct hid_report {
struct list_head list;