Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 343c0042 authored by Carlos Corbacho's avatar Carlos Corbacho Committed by Len Brown
Browse files

acer-wmi: Rename mail LED correctly & remove hardcoded colour



The mail LED name for acer-wmi currently hardcodes in the colour as green.
This is wrong, since many of the newer laptops now come with an orange
LED, and we have no way of telling what colour is used on a given system.

Also, rename the mail LED to be inline with the current recommendations of
the LED class documentation.

Signed-off-by: default avatarCarlos Corbacho <carlos@strangeworlds.co.uk>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 2f44bbb4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -169,7 +169,7 @@ can be added to acer-wmi.

The LED is exposed through the LED subsystem, and can be found in:

/sys/devices/platform/acer-wmi/leds/acer-mail:green/
/sys/devices/platform/acer-wmi/leds/acer-wmi::mail/

The mail LED is autodetected, so if you don't have one, the LED device won't
be registered.
+1 −1
Original line number Diff line number Diff line
@@ -761,7 +761,7 @@ enum led_brightness value)
}

static struct led_classdev mail_led = {
	.name = "acer-mail:green",
	.name = "acer-wmi::mail",
	.brightness_set = mail_led_set,
};