Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
HID: Allow more fields in the hid report
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rydberg committed Sep 19, 2012
1 parent 9ebf3d7 commit 7e55bde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/hid.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7e55bde

Please sign in to comment.