mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-23 12:14:10 +08:00
Input: leds - set default-trigger for mute
Set the default-trigger for the mute led to audio-mute. Signed-off-by: Bernhard Seibold <mail@bernhard-seibold.de> Link: https://lore.kernel.org/r/20240113103743.97205-1-mail@bernhard-seibold.de Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
d259f13746
commit
698b43780b
@ -18,6 +18,12 @@
|
||||
#define VT_TRIGGER(_name) .trigger = NULL
|
||||
#endif
|
||||
|
||||
#if IS_ENABLED(CONFIG_LEDS_TRIGGER_AUDIO)
|
||||
#define AUDIO_TRIGGER(_name) .trigger = _name
|
||||
#else
|
||||
#define AUDIO_TRIGGER(_name) .trigger = NULL
|
||||
#endif
|
||||
|
||||
static const struct {
|
||||
const char *name;
|
||||
const char *trigger;
|
||||
@ -29,7 +35,7 @@ static const struct {
|
||||
[LED_KANA] = { "kana", VT_TRIGGER("kbd-kanalock") },
|
||||
[LED_SLEEP] = { "sleep" } ,
|
||||
[LED_SUSPEND] = { "suspend" },
|
||||
[LED_MUTE] = { "mute" },
|
||||
[LED_MUTE] = { "mute", AUDIO_TRIGGER("audio-mute") },
|
||||
[LED_MISC] = { "misc" },
|
||||
[LED_MAIL] = { "mail" },
|
||||
[LED_CHARGING] = { "charging" },
|
||||
|
Loading…
Reference in New Issue
Block a user