[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220121165436.30956-26-sampaio.ime@gmail.com>
Date: Fri, 21 Jan 2022 13:54:30 -0300
From: Luiz Sampaio <sampaio.ime@...il.com>
To: Pavel Machek <pavel@....cz>
Cc: linux-kernel@...r.kernel.org, Luiz Sampaio <sampaio.ime@...il.com>,
linux-leds@...r.kernel.org
Subject: [PATCH 25/31] include: linux: leds: changing LED_* from enum led_brightness to actual value
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.
---
include/linux/leds.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/leds.h b/include/linux/leds.h
index ba4861ec73d3..814541e41ce0 100644
--- a/include/linux/leds.h
+++ b/include/linux/leds.h
@@ -597,7 +597,7 @@ void ledtrig_audio_set(enum led_audio type, enum led_brightness state);
#else
static inline enum led_brightness ledtrig_audio_get(enum led_audio type)
{
- return LED_OFF;
+ return 0;
}
static inline void ledtrig_audio_set(enum led_audio type,
enum led_brightness state)
--
2.34.1
Powered by blists - more mailing lists