mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
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:
parent
fb5022278b
commit
ea48250a0d
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user