Преглед изворни кода

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>
Henrik Rydberg пре 13 година
родитељ
комит
7e55bdedfa
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      include/linux/hid.h

+ 1 - 1
include/linux/hid.h

@@ -414,7 +414,7 @@ struct hid_field {
 	__u16 dpad;			/* dpad input code */
 	__u16 dpad;			/* dpad input code */
 };
 };
 
 
-#define HID_MAX_FIELDS 128
+#define HID_MAX_FIELDS 256
 
 
 struct hid_report {
 struct hid_report {
 	struct list_head list;
 	struct list_head list;