git: 5a1ecfa5a986 - releng/13.0 - hid: bump HID_ITEM_MAXUSAGES to 8
Warner Losh
imp at FreeBSD.org
Mon Mar 1 19:00:24 UTC 2021
The branch releng/13.0 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=5a1ecfa5a986b888c5d6c8c38383ad38d2adb03a
commit 5a1ecfa5a986b888c5d6c8c38383ad38d2adb03a
Author: Warner Losh <imp at FreeBSD.org>
AuthorDate: 2021-02-08 19:29:20 +0000
Commit: Warner Losh <imp at FreeBSD.org>
CommitDate: 2021-03-01 18:59:13 +0000
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
Approved by: re@ (gjb)
(cherry picked from commit db2f512381ac3c0c227f5c0354690bb929dcac17)
(cherry picked from commit 0dc5c9467b5bbcf26a8232553a1c213bb95ce635)
---
sys/dev/hid/hid.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 */
More information about the dev-commits-src-all
mailing list