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>
This commit is contained in:
Dmitry Torokhov 2026-09-13 17:19:48 -07:00
parent fb5022278b
commit ea48250a0d

View File

@ -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