[PATCH v3 3/4] HID: debug: Add FF_TRIGGER_RUMBLE name
Guillaume Casal <[email protected]> Fri, 31 Jul 2026 07:41:58 +0200
| Newsgroups | org.kernel.vger.linux-input,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Without an entry in the force[] array, hid_resolv_event() prints the raw hex code instead of the name in debugfs. Signed-off-by: Guillaume Casal <[email protected]> --- diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c --- a/drivers/hid/hid-debug.c +++ b/drivers/hid/hid-debug.c @@ -3583,6 +3583,7 @@ }; static const char *force[FF_CNT] = { + [FF_TRIGGER_RUMBLE] = "FF_TRIGGER_RUMBLE", [FF_RUMBLE] = "FF_RUMBLE", [FF_PERIODIC] = "FF_PERIODIC", [FF_CONSTANT] = "FF_CONSTANT",