Commit 698b4378 authored by Bernhard Seibold's avatar Bernhard Seibold Committed by Dmitry Torokhov

Input: leds - set default-trigger for mute

Set the default-trigger for the mute led to audio-mute.
Signed-off-by: default avatarBernhard Seibold <mail@bernhard-seibold.de>
Link: https://lore.kernel.org/r/20240113103743.97205-1-mail@bernhard-seibold.deSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent d259f137
...@@ -18,6 +18,12 @@ ...@@ -18,6 +18,12 @@
#define VT_TRIGGER(_name) .trigger = NULL #define VT_TRIGGER(_name) .trigger = NULL
#endif #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 { static const struct {
const char *name; const char *name;
const char *trigger; const char *trigger;
...@@ -29,7 +35,7 @@ static const struct { ...@@ -29,7 +35,7 @@ static const struct {
[LED_KANA] = { "kana", VT_TRIGGER("kbd-kanalock") }, [LED_KANA] = { "kana", VT_TRIGGER("kbd-kanalock") },
[LED_SLEEP] = { "sleep" } , [LED_SLEEP] = { "sleep" } ,
[LED_SUSPEND] = { "suspend" }, [LED_SUSPEND] = { "suspend" },
[LED_MUTE] = { "mute" }, [LED_MUTE] = { "mute", AUDIO_TRIGGER("audio-mute") },
[LED_MISC] = { "misc" }, [LED_MISC] = { "misc" },
[LED_MAIL] = { "mail" }, [LED_MAIL] = { "mail" },
[LED_CHARGING] = { "charging" }, [LED_CHARGING] = { "charging" },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment