linux/drivers/tty/vt
Hans de Goede 80c4d3d489 vt: keyboard: Use led_set_brightness() in LED trigger activate() callback
A LED trigger's activate() callback gets called when the LED trigger
gets activated for a specific LED, so that the trigger code can ensure
the LED state matches the current state of the trigger condition.

led_trigger_event() is intended for trigger condition state changes and
iterates over _all_ LEDs which are controlled by this trigger changing
the brightness of each of them.

In the activate() case only the brightness of the LED which is being
activated needs to change and that LED is passed as an argument to
activate(), switch to led_set_brightness() to only change the brightness
of the LED being activated.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20240511152030.4848-1-hdegoede@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-04 14:00:53 +02:00
..
.gitignore
Makefile vt: remove superfluous CONFIG_HW_CONSOLE 2024-01-27 19:03:51 -08:00
conmakehash.c tty: vt: conmakehash: Don't mention the full path of the input in output 2024-04-09 15:50:12 +02:00
consolemap.c drivers/tty/vt: use standard array-copy-functions 2023-11-25 07:23:16 +00:00
cp437.uni
defkeymap.c_shipped
defkeymap.map
keyboard.c vt: keyboard: Use led_set_brightness() in LED trigger activate() callback 2024-06-04 14:00:53 +02:00
selection.c tty: vt: fix up kernel-doc 2024-01-27 18:08:55 -08:00
vc_screen.c printk: Change type of CONFIG_BASE_SMALL to bool 2024-05-06 17:39:09 +02:00
vt.c tty: add the option to have a tty reject a new ldisc 2024-05-04 18:45:11 +02:00
vt_ioctl.c tty: vt: pass vc_resize_user as a parameter 2024-01-27 18:08:52 -08:00