Skip to content

Commit 05aa43c

Browse files
Alex Hungdvhart
authored andcommitted
platform/x86: hp-wireless: add Xiaomi's hardware id to the supported list
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>
1 parent 5b7bb3a commit 05aa43c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/platform/x86/hp-wireless.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* hp-wireless button for Windows 8
2+
* Airplane mode button for HP & Xiaomi laptops
33
*
4-
* Copyright (C) 2014 Alex Hung <alex.hung@canonical.com>
4+
* Copyright (C) 2014-2017 Alex Hung <alex.hung@canonical.com>
55
*
66
* This program is free software; you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by
@@ -29,11 +29,13 @@
2929
MODULE_LICENSE("GPL");
3030
MODULE_AUTHOR("Alex Hung");
3131
MODULE_ALIAS("acpi*:HPQ6001:*");
32+
MODULE_ALIAS("acpi*:WSTADEF:*");
3233

3334
static struct input_dev *hpwl_input_dev;
3435

3536
static const struct acpi_device_id hpwl_ids[] = {
3637
{"HPQ6001", 0},
38+
{"WSTADEF", 0},
3739
{"", 0},
3840
};
3941

@@ -112,7 +114,6 @@ static int __init hpwl_init(void)
112114
{
113115
int err;
114116

115-
pr_info("Initializing HPQ6001 module\n");
116117
err = acpi_bus_register_driver(&hpwl_driver);
117118
if (err)
118119
pr_err("Unable to register HP wireless control driver.\n");
@@ -122,7 +123,6 @@ static int __init hpwl_init(void)
122123

123124
static void __exit hpwl_exit(void)
124125
{
125-
pr_info("Exiting HPQ6001 module\n");
126126
acpi_bus_unregister_driver(&hpwl_driver);
127127
}
128128

0 commit comments

Comments
 (0)