aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Corbacho <carlos@strangeworlds.co.uk>2008-02-24 08:34:18 -0500
committerLen Brown <len.brown@intel.com>2008-03-11 17:53:24 -0400
commit343c00422d3296838927016750b18ead8aa8bf9a (patch)
tree4ab94a71c754a0ab1d6c0905922f2d0443b2d14e
parent2f44bbb495dd3e6d0209eff2257438ab9c570e5b (diff)
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: Carlos Corbacho <carlos@strangeworlds.co.uk> Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r--Documentation/laptops/acer-wmi.txt2
-rw-r--r--drivers/misc/acer-wmi.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/laptops/acer-wmi.txt b/Documentation/laptops/acer-wmi.txt
index b06696329cff..a346c8666d22 100644
--- a/Documentation/laptops/acer-wmi.txt
+++ b/Documentation/laptops/acer-wmi.txt
@@ -169,7 +169,7 @@ can be added to acer-wmi.
169 169
170The LED is exposed through the LED subsystem, and can be found in: 170The LED is exposed through the LED subsystem, and can be found in:
171 171
172/sys/devices/platform/acer-wmi/leds/acer-mail:green/ 172/sys/devices/platform/acer-wmi/leds/acer-wmi::mail/
173 173
174The mail LED is autodetected, so if you don't have one, the LED device won't 174The mail LED is autodetected, so if you don't have one, the LED device won't
175be registered. 175be registered.
diff --git a/drivers/misc/acer-wmi.c b/drivers/misc/acer-wmi.c
index 74d12b4a3abd..e85d96f99ae6 100644
--- a/drivers/misc/acer-wmi.c
+++ b/drivers/misc/acer-wmi.c
@@ -761,7 +761,7 @@ enum led_brightness value)
761} 761}
762 762
763static struct led_classdev mail_led = { 763static struct led_classdev mail_led = {
764 .name = "acer-mail:green", 764 .name = "acer-wmi::mail",
765 .brightness_set = mail_led_set, 765 .brightness_set = mail_led_set,
766}; 766};
767 767