From patchwork Thu Apr 6 16:32:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Hung X-Patchwork-Id: 9667901 X-Patchwork-Delegate: dvhart@infradead.org 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 1BF7C6021C for ; Thu, 6 Apr 2017 16:32:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B99A269A3 for ; Thu, 6 Apr 2017 16:32:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F3111285AE; Thu, 6 Apr 2017 16:32:32 +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=-6.9 required=2.0 tests=BAYES_00,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 88E33269A3 for ; Thu, 6 Apr 2017 16:32:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752478AbdDFQcb (ORCPT ); Thu, 6 Apr 2017 12:32:31 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:59658 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751662AbdDFQcb (ORCPT ); Thu, 6 Apr 2017 12:32:31 -0400 Received: from 2.general.alexhung.uk.vpn ([10.172.193.255] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1cwAKj-000478-Nl; Thu, 06 Apr 2017 16:32:29 +0000 From: Alex Hung To: dvhart@infradead.org, andy@infradead.org, platform-driver-x86@vger.kernel.org, alex.hung@canonical.com Subject: [PATCH] hp-wireless: add Xiaomi's hardware id to the supported list Date: Thu, 6 Apr 2017 17:32:16 +0100 Message-Id: <1491496336-19639-1-git-send-email-alex.hung@canonical.com> X-Mailer: git-send-email 2.7.4 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 The airplane mode button on Xiaomi's new laptops are the same as HP laptops. This is tested on Xiaomi Notebook Air 13. Signed-off-by: Alex Hung --- drivers/platform/x86/hp-wireless.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/platform/x86/hp-wireless.c b/drivers/platform/x86/hp-wireless.c index 988eedb..1d4df3d 100644 --- a/drivers/platform/x86/hp-wireless.c +++ b/drivers/platform/x86/hp-wireless.c @@ -1,7 +1,7 @@ /* - * hp-wireless button for Windows 8 + * Airplane mode button for HP & Xiaomi laptops * - * Copyright (C) 2014 Alex Hung + * Copyright (C) 2014-2017 Alex Hung * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,11 +29,13 @@ MODULE_LICENSE("GPL"); MODULE_AUTHOR("Alex Hung"); MODULE_ALIAS("acpi*:HPQ6001:*"); +MODULE_ALIAS("acpi*:WSTADEF:*"); static struct input_dev *hpwl_input_dev; static const struct acpi_device_id hpwl_ids[] = { {"HPQ6001", 0}, + {"WSTADEF", 0}, {"", 0}, }; @@ -112,7 +114,7 @@ static int __init hpwl_init(void) { int err; - pr_info("Initializing HPQ6001 module\n"); + pr_info("Initializing HPQ6001/WSTADEF module\n"); err = acpi_bus_register_driver(&hpwl_driver); if (err) pr_err("Unable to register HP wireless control driver.\n"); @@ -122,7 +124,7 @@ static int __init hpwl_init(void) static void __exit hpwl_exit(void) { - pr_info("Exiting HPQ6001 module\n"); + pr_info("Exiting HPQ6001/WSTADEF module\n"); acpi_bus_unregister_driver(&hpwl_driver); }