From: Henrik Rydberg Date: Mon, 3 Sep 2012 10:28:59 +0000 (+0200) Subject: HID: Allow more fields in the hid report X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7e55bdedfa4a72baa0d4fec8d0948cb65342a9a0;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Jiri Kosina Signed-off-by: Henrik Rydberg --- 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;