From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jason A. Donenfeld" Subject: [PATCH 3/3] thinkpad_acpi: Wire unused micmute LED to capslock Date: Thu, 22 Aug 2013 16:02:12 +0200 Message-ID: <1377180132-4933-3-git-send-email-Jason@zx2c4.com> References: <1377180132-4933-1-git-send-email-Jason@zx2c4.com> Return-path: Received: from frisell.zx2c4.com ([192.95.5.64]:38115 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752958Ab3HVOJr (ORCPT ); Thu, 22 Aug 2013 10:09:47 -0400 In-Reply-To: <1377180132-4933-1-git-send-email-Jason@zx2c4.com> Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: linux-acpi@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Cc: mjg@redhat.com, rjw@sisk.pl, len.brown@intel.com, dtor@insightbb.com, "Jason A. Donenfeld" Thinkpads with a micmute LED do not have a capslock LED. The micmute LED is currently not used by any piece of Linux kernel land or user land. It seems reasonable to hook it up to caps lock, at least by default, so users can have some degree of functionality. Signed-off-by: Jason A. Donenfeld --- drivers/platform/x86/thinkpad_acpi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 33b23cb..708fdb8 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -5235,6 +5235,10 @@ static int __init tpacpi_init_led(unsigned int led) tpacpi_leds[led].led_classdev.name = tpacpi_led_names[led]; + /* Special case wiring micmute to caps-lock by default. */ + if (led == 14) + tpacpi_leds[led].led_classdev.default_trigger = "caps-lock"; + INIT_WORK(&tpacpi_leds[led].work, led_set_status_worker); rc = led_classdev_register(&tpacpi_pdev->dev, -- 1.8.3.2