[PATCH 31/31] sound: soc: sof: changing LED_* from enum led_brightness to actual value

From: Luiz Sampaio
Date: Fri Jan 21 2022 - 11:57:32 EST


The enum led_brightness, which contains the declaration of LED_OFF,
LED_ON, LED_HALF and LED_FULL is obsolete, as the led class now supports
max_brightness.
---
sound/soc/sof/control.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/sof/control.c b/sound/soc/sof/control.c
index ef61936dad59..02e40aef9995 100644
--- a/sound/soc/sof/control.c
+++ b/sound/soc/sof/control.c
@@ -39,9 +39,9 @@ static void update_mute_led(struct snd_sof_control *scontrol,

#if IS_REACHABLE(CONFIG_LEDS_TRIGGER_AUDIO)
if (!scontrol->led_ctl.direction)
- ledtrig_audio_set(LED_AUDIO_MUTE, temp ? LED_OFF : LED_ON);
+ ledtrig_audio_set(LED_AUDIO_MUTE, temp ? 0 : 1);
else
- ledtrig_audio_set(LED_AUDIO_MICMUTE, temp ? LED_OFF : LED_ON);
+ ledtrig_audio_set(LED_AUDIO_MICMUTE, temp ? 0 : 1);
#endif
}

--
2.34.1