From patchwork Tue May 1 11:11:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 10373549 X-Patchwork-Delegate: andy.shevchenko@gmail.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 14A406053D for ; Tue, 1 May 2018 11:12:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0548928C16 for ; Tue, 1 May 2018 11:12:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC0E428C2C; Tue, 1 May 2018 11:12:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C2AF28C16 for ; Tue, 1 May 2018 11:12:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753700AbeEALM2 (ORCPT ); Tue, 1 May 2018 07:12:28 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:41515 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752673AbeEALM1 (ORCPT ); Tue, 1 May 2018 07:12:27 -0400 Received: by mail-wr0-f196.google.com with SMTP id g21-v6so10532804wrb.8; Tue, 01 May 2018 04:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=StyEbhZvfKXNw5hUH1O6ychc4Wk4Pq+ASQI+3M7Q+R4=; b=rZgLKlH18X+8FREwD/yggpe1bsTARGevQOmFzKgT6nnrb3qYL6jd9iIhQMnBQT1p7h 9PQ1xZ9NQ86zpRU0TU3OYt3ctjtUAbM6DlAIhB4yDp36XTbUMyXMACNCALBnBRnP8T1I MKoxjgEyASukNFBxCsYLvKtGKvSh4BKP2wA0XcHkRRZgWBvh+5TQLACEkDGA7QL737HE 3NhoEFqeRJgU7NKBmt7AkKHmrmNx3hK8JhcGKq5VPlPxko7uF2yCu4Ibsn8+ctqU5C2T z9/I/quv3lTKG2VKg/aDl4IXDIexXJWZRrFlZgDrxr1VRwJhk0abBxfq2dWjmHeXs7lE Ss7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=StyEbhZvfKXNw5hUH1O6ychc4Wk4Pq+ASQI+3M7Q+R4=; b=JBoU4RJ3JyOjdKWJ9ls+IQZyPr9m1Vac3YyyJ6H9EQhI/wileY1mrvavryMxB6MmcC H3SdS7/IFEfDzpl9Xjp8l4s9NU7HeN5FasuN4QJcdrcYvqVkHT87PkUz7fW+oHY/XAk0 f28AJWvvKf4nhNHtVTPuC6QCVyt2WJnkcyEjMrfLBdDUFxMo/8uy1BLfEIYHkBotq3kW axNCa4VRGrrQkELaK/WV/Tj9vOUqKXABEA549Jd0ogUV7oIGoRFMYgcLlF0WafiU7FNV TwzwwAbBaueSisN92AydZTmFB/K1672Y2Q8+w4dcj0CzDEnubpJ6cc4AINcsSlTElVOR Fmyg== X-Gm-Message-State: ALQs6tCAynxvkTGxIsmKJx6FTWDquAODXuvlOpZpk7UinYpfgLmwZnzL 0PaClgRhdN2xgfa3i3IZ7L0= X-Google-Smtp-Source: AB8JxZoMYrQuZtW27ckEglmsQ7Zf8KWsJudhW4ALvBf2KuSg5+4kUH5FL5gdcum/fpZrVjHRgVFYEA== X-Received: by 2002:adf:85b8:: with SMTP id 53-v6mr12262145wrt.31.1525173146012; Tue, 01 May 2018 04:12:26 -0700 (PDT) Received: from Pali-Latitude.lan (pali.kolej.mff.cuni.cz. [78.128.193.202]) by smtp.gmail.com with ESMTPSA id i26sm696475wmb.19.2018.05.01.04.12.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 May 2018 04:12:25 -0700 (PDT) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Darren Hart , Andy Shevchenko , Mario Limonciello , Henk Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] dell-wmi: Set correct keycode for Fn + left arrow hotkey Date: Tue, 1 May 2018 13:11:54 +0200 Message-Id: <20180501111154.9244-1-pali.rohar@gmail.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Henk Fn + left arrow hotkey combination is used for enabling/disabling automatic display brigthness based on integrated ALS sensor. For this purpose there is standard linux key KEY_BRIGHTNESS_AUTO so use it instead of KEY_UNKNOWN. Tested on Dell Lattitude E6500. Signed-off-by: Henk Vergonet Reviewed-By: Pali Rohár Reviewed-By: Mario Limonciello --- Changes since v1 by Pali * Update commit description --- drivers/platform/x86/dell-wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c index 8d102195..7c918e37 100644 --- a/drivers/platform/x86/dell-wmi.c +++ b/drivers/platform/x86/dell-wmi.c @@ -233,7 +233,7 @@ static const u16 bios_to_linux_keycode[256] = { [18] = KEY_PROG1, [19] = KEY_BRIGHTNESSDOWN, [20] = KEY_BRIGHTNESSUP, - [21] = KEY_UNKNOWN, + [21] = KEY_BRIGHTNESS_AUTO, [22] = KEY_KBDILLUMTOGGLE, [23] = KEY_UNKNOWN, [24] = KEY_SWITCHVIDEOMODE,