WSL2-Linux-Kernel/Documentation/leds
Roderick Colenbrander 61177c088a leds: add new LED_FUNCTION_PLAYER for player LEDs for game controllers.
Player LEDs are commonly found on game controllers from Nintendo and Sony
to indicate a player ID across a number of LEDs. For example, "Player 2"
might be indicated as "-x--" on a device with 4 LEDs where "x" means on.

This patch introduces LED_FUNCTION_PLAYER1-5 defines to properly indicate
player LEDs from the kernel. Until now there was no good standard, which
resulted in inconsistent behavior across xpad, hid-sony, hid-wiimote and
other drivers. Moving forward new drivers should use LED_FUNCTION_PLAYERx.

Note: management of Player IDs is left to user space, though a kernel
driver may pick a default value.

Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2021-10-27 09:49:29 +02:00
..
index.rst
leds-blinkm.rst
leds-class-flash.rst
leds-class-multicolor.rst
leds-class.rst
leds-el15203000.rst
leds-lm3556.rst
leds-lp55xx.rst
leds-lp3944.rst
leds-lp5521.rst
leds-lp5523.rst
leds-lp5562.rst
leds-mlxcpld.rst
leds-sc27xx.rst
ledtrig-oneshot.rst
ledtrig-transient.rst
ledtrig-usbport.rst
uleds.rst
well-known-leds.txt leds: add new LED_FUNCTION_PLAYER for player LEDs for game controllers. 2021-10-27 09:49:29 +02:00