[PATCH v2 3/4] HID: debug: Add FF_TRIGGER_RUMBLE name
From: Guillaume Casal
Date: Thu Jul 30 2026 - 09:49:33 EST
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 <guillaume.casal.42@xxxxxxxxx>
---
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",