From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753722AbdASRaU (ORCPT ); Thu, 19 Jan 2017 12:30:20 -0500 Received: from mail-pg0-f53.google.com ([74.125.83.53]:35755 "EHLO mail-pg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751222AbdASRaS (ORCPT ); Thu, 19 Jan 2017 12:30:18 -0500 From: Adam Goode To: Henrique de Moraes Holschuh , Darren Hart Cc: ibm-acpi-devel@lists.sourceforge.net, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Adam Goode Subject: [PATCH 1/1] thinkpad_acpi: Add support for status (external cover) LED Date: Thu, 19 Jan 2017 12:21:32 -0500 Message-Id: <20170119172132.36029-1-agoode@google.com> X-Mailer: git-send-email 2.11.0.483.g087da7b7c-goog Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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