summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2026-09-13 17:19:48 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-09-13 17:25:16 -0700
commitea48250a0dc9708c198e8665391973bfc6c86fd2 (patch)
treed68b0a4c5cb25047ca89fe516c1e0ef8b40d7a10 /include/uapi/linux
parentfb5022278b6ea7f1838e3ef78028d5d5e3375f65 (diff)
downloadlinux-ea48250a0dc9708c198e8665391973bfc6c86fd2.tar.gz
linux-ea48250a0dc9708c198e8665391973bfc6c86fd2.zip
Input: document that no new LED codes should be added
Add a comment to input-event-codes.h clarifying that no new LED definitions should be added to the input subsystem. The existing LED_* definitions are legacy and grandfathered for backwards compatibility with userspace via evdev. Any new LED indicators should instead use the dedicated LED subsystem. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/input-event-codes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/input-event-codes.h b/include/uapi/linux/input-event-codes.h
index 3528168f7c6d..4217950e5d16 100644
--- a/include/uapi/linux/input-event-codes.h
+++ b/include/uapi/linux/input-event-codes.h
@@ -970,6 +970,12 @@
/*
* LEDs
+ *
+ * Do not add any new LED definitions to the input subsystem. The existing
+ * definitions are legacy and grandfathered for backwards compatibility with
+ * userspace (via evdev). Any new LEDs should be implemented using the
+ * LED subsystem (struct led_classdev). The input core provides a bridge to
+ * the LED subsystem in drivers/input/input-leds.c.
*/
#define LED_NUML 0x00