@@ -46,7 +46,7 @@ MODULE_ALIAS("wmi:" DELL_LED_BIOS_GUID);
#define GLOBAL_MIC_MUTE_ENABLE 0x364
#define GLOBAL_MIC_MUTE_DISABLE 0x365
-static int dell_micmute_led_set(int state)
+int dell_micmute_led_set(int state)
{
struct calling_interface_buffer *buffer;
struct calling_interface_token *token;
@@ -69,6 +69,7 @@ static int dell_micmute_led_set(int state)
return state;
}
+EXPORT_SYMBOL_GPL(dell_micmute_led_set);
int dell_app_wmi_led_set(int whichled, int on)
{
@@ -5,6 +5,7 @@ enum {
DELL_LED_MICMUTE,
};
+int dell_micmute_led_set(int on);
int dell_app_wmi_led_set(int whichled, int on);
#endif
When the dell_app_wmi_led_set() method was introduced in db6d8cc ("dell-led: add mic mute led interface"), it was implemented as an easily extensible entry point for other modules to set the state of various LEDs. However, almost three years later it is still only used to control the mic mute LED, so it will be replaced with direct calls to dell_micmute_led_set(). For this to be possible, dell_micmute_led_set() has to be exported first. Signed-off-by: Michał Kępień <kernel@kempniu.pl> --- drivers/leds/dell-led.c | 3 ++- include/linux/dell-led.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-)