[PATCH 30/31] sound: core: changing LED_* from enum led_brightness to actual value
From: Luiz Sampaio
Date: Fri Jan 21 2022 - 11:57:25 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/core/control_led.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/core/control_led.c b/sound/core/control_led.c
index 207828f30983..ddfac2f5f59e 100644
--- a/sound/core/control_led.c
+++ b/sound/core/control_led.c
@@ -177,7 +177,7 @@ static void snd_ctl_led_set_state(struct snd_card *card, unsigned int access,
case MODE_FOLLOW_MUTE: /* noop */ break;
}
if (route >= 0)
- ledtrig_audio_set(led->trigger_type, route ? LED_OFF : LED_ON);
+ ledtrig_audio_set(led->trigger_type, route ? 0 : 1);
}
static struct snd_ctl_led_ctl *snd_ctl_led_find(struct snd_kcontrol *kctl, unsigned int ioff)
--
2.34.1