diff options
author | Warner Losh <imp@FreeBSD.org> | 2021-02-08 19:29:20 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2021-02-08 22:31:39 +0000 |
commit | db2f512381ac3c0c227f5c0354690bb929dcac17 (patch) | |
tree | b87f95dcee3f1fa2bbfd9a46cb89cc4e722dbc94 /sys/dev/hid | |
parent | 07cac176fba947381c8111b8e02e8067e7fa542a (diff) | |
download | src-db2f512381ac3c0c227f5c0354690bb929dcac17.tar.gz src-db2f512381ac3c0c227f5c0354690bb929dcac17.zip |
hid: bump HID_ITEM_MAXUSAGES to 8
My YOGA requires a minimum of 7 to parse w/o an error. Since the memory savings
are trivial and the yoga a popular system, bump the default up to 8. There's no
API/ABI issues in doing this. This hid_item struct isn't exported to userland
and the one libusbhid has is different and only shares a name...
MFC After: 3 days
Reviewed by: wulf@
Differential Revision: https://reviews.freebsd.org/D28543
Diffstat (limited to 'sys/dev/hid')
-rw-r--r-- | sys/dev/hid/hid.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/hid/hid.h b/sys/dev/hid/hid.h index e88cbba04d9a..37ab8c9cdf7e 100644 --- a/sys/dev/hid/hid.h +++ b/sys/dev/hid/hid.h @@ -189,7 +189,7 @@ #if defined(_KERNEL) || defined(_STANDALONE) -#define HID_ITEM_MAXUSAGE 4 +#define HID_ITEM_MAXUSAGE 8 #define HID_MAX_AUTO_QUIRK 8 /* maximum number of dynamic quirks */ #define HID_PNP_ID_SIZE 20 /* includes null terminator */ |