git: 5cc15fef2656 - main - hid: Increase HID_ITEM_MAXUSAGE to 32

From: Tijl Coosemans <tijl_at_FreeBSD.org>
Date: Wed, 30 Sep 2026 10:38:07 UTC
The branch main has been updated by tijl:

URL: https://cgit.FreeBSD.org/src/commit/?id=5cc15fef2656b078982d453b8915379b47ff0e88

commit 5cc15fef2656b078982d453b8915379b47ff0e88
Author:     Tijl Coosemans <tijl@FreeBSD.org>
AuthorDate: 2025-04-14 09:03:21 +0000
Commit:     Tijl Coosemans <tijl@FreeBSD.org>
CommitDate: 2026-09-30 10:36:18 +0000

    hid: Increase HID_ITEM_MAXUSAGE to 32
    
    I have a Logitech mouse that reports 16 buttons.  Bump to 32 to be a
    little more future proof.  This increases the size of struct hid_item
    but this struct is not exported to userland.
    
    Reviewed by:    wulf
    Differential Revision:  https://reviews.freebsd.org/D59273
---
 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 848657a7b768..a4839d521b21 100644
--- a/sys/dev/hid/hid.h
+++ b/sys/dev/hid/hid.h
@@ -201,7 +201,7 @@
 
 #if defined(_KERNEL) || defined(_STANDALONE)
 
-#define	HID_ITEM_MAXUSAGE	8
+#define	HID_ITEM_MAXUSAGE	32
 #define	HID_MAX_AUTO_QUIRK	8	/* maximum number of dynamic quirks */
 #define	HID_PNP_ID_SIZE		20	/* includes null terminator */