All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] thinkpad_acpi: Add support for status (external cover) LED
@ 2017-01-19 17:21 ` Adam Goode
  0 siblings, 0 replies; 13+ messages in thread
From: Adam Goode @ 2017-01-19 17:21 UTC (permalink / raw)
  To: Henrique de Moraes Holschuh, Darren Hart
  Cc: Adam Goode, ibm-acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	platform-driver-x86-u79uwXL29TY76Z2rM5mHXA

This allows the control of the red status LED, which is the dot of the "i"
in the word "ThinkPad" on the outside cover of newer models.

In the manual, both this LED and the power LED are referred to as
the "system-status indicators" without distinction between the two, so
I chose "status" as the LED name.

Signed-off-by: Adam Goode <agoode-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>

diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index cacb43fb1df7..6577bf8e5635 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -5611,11 +5611,11 @@ static const char * const tpacpi_led_names[TPACPI_LED_NUMLEDS] = {
 	"tpacpi::standby",
 	"tpacpi::dock_status1",
 	"tpacpi::dock_status2",
-	"tpacpi::unknown_led2",
+	"tpacpi::status",
 	"tpacpi::unknown_led3",
 	"tpacpi::thinkvantage",
 };
-#define TPACPI_SAFE_LEDS	0x1081U
+#define TPACPI_SAFE_LEDS	0x1481U
 
 static inline bool tpacpi_is_led_restricted(const unsigned int led)
 {
-- 
2.11.0.390.gc69c2f50cf-goog


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-05-14 15:18 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-19 17:21 [PATCH 1/1] thinkpad_acpi: Add support for status (external cover) LED Adam Goode
2017-01-19 17:21 ` Adam Goode
     [not found] ` <20170119172132.36029-1-agoode-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2017-01-31 19:49   ` Adam Goode
     [not found]     ` <CAOf41Nka4UNk_XUegEXAOHE-Xf0eOs71fuZgBKr0PHEL9sGyag-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-02-08  1:01       ` Henrique de Moraes Holschuh
2017-02-08  1:01         ` [ibm-acpi-devel] " Henrique de Moraes Holschuh
2017-02-12 18:22         ` Sebastian Reichel
2017-02-12 18:27           ` Adam Goode
2017-05-07 16:38   ` Pavel Machek
2017-05-07 16:38     ` Pavel Machek
2017-05-07 23:49     ` Henrique de Moraes Holschuh
2017-05-12 10:43       ` Pavel Machek
2017-05-12 17:23         ` [ibm-acpi-devel] " Henrique de Moraes Holschuh
     [not found]           ` <20170512172321.GA16100-ZGHd14iZgfaRjzvQDGKj+xxZW9W5cXbT@public.gmane.org>
2017-05-14 15:18             ` Adam Goode

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.