]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
platform/x86: hp-wireless: add Xiaomi's hardware id to the supported list
authorAlex Hung <alex.hung@canonical.com>
Thu, 6 Apr 2017 16:32:16 +0000 (17:32 +0100)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 13 Apr 2017 18:34:26 +0000 (11:34 -0700)
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 <alex.hung@canonical.com>
[dvhart: Dropped module init/exit info messages]
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/hp-wireless.c

index 988eedbd7c636e97a9708fc3b72d07ec2162e6cb..d860ea0d0e60c87844ebe4990f074ca913f8bd11 100644 (file)
@@ -1,7 +1,7 @@
 /*
- *  hp-wireless button for Windows 8
+ *  Airplane mode button for HP & Xiaomi laptops
  *
- *  Copyright (C) 2014 Alex Hung <alex.hung@canonical.com>
+ *  Copyright (C) 2014-2017 Alex Hung <alex.hung@canonical.com>
  *
  *  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
 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,6 @@ static int __init hpwl_init(void)
 {
        int err;
 
-       pr_info("Initializing HPQ6001 module\n");
        err = acpi_bus_register_driver(&hpwl_driver);
        if (err)
                pr_err("Unable to register HP wireless control driver.\n");
@@ -122,7 +123,6 @@ static int __init hpwl_init(void)
 
 static void __exit hpwl_exit(void)
 {
-       pr_info("Exiting HPQ6001 module\n");
        acpi_bus_unregister_driver(&hpwl_driver);
 }