Commit cd43afd3 authored by Kiernan Hager's avatar Kiernan Hager Committed by Kleber Sacilotto de Souza

platform/x86: asus-nb-wmi: Support ALS on the Zenbook UX430UQ

BugLink: https://bugs.launchpad.net/bugs/1854855

[ Upstream commit db2582af ]

This patch adds support for ALS on the Zenbook UX430UQ to the asus_nb_wmi
driver. It also renames "quirk_asus_ux330uak" to "quirk_asus_forceals"
because it is now used for more than one model of computer, and should
thus have a more general name.
Signed-off-by: default avatarKiernan Hager <kah.listaddress@gmail.com>
[andy: massaged commit message, fixed indentation and commas in the code]
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarConnor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 5633618b
...@@ -124,7 +124,7 @@ static struct quirk_entry quirk_asus_x550lb = { ...@@ -124,7 +124,7 @@ static struct quirk_entry quirk_asus_x550lb = {
.xusb2pr = 0x01D9, .xusb2pr = 0x01D9,
}; };
static struct quirk_entry quirk_asus_ux330uak = { static struct quirk_entry quirk_asus_forceals = {
.wmi_force_als_set = true, .wmi_force_als_set = true,
}; };
...@@ -426,7 +426,7 @@ static const struct dmi_system_id asus_quirks[] = { ...@@ -426,7 +426,7 @@ static const struct dmi_system_id asus_quirks[] = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "UX330UAK"), DMI_MATCH(DMI_PRODUCT_NAME, "UX330UAK"),
}, },
.driver_data = &quirk_asus_ux330uak, .driver_data = &quirk_asus_forceals,
}, },
{ {
.callback = dmi_matched, .callback = dmi_matched,
...@@ -437,6 +437,15 @@ static const struct dmi_system_id asus_quirks[] = { ...@@ -437,6 +437,15 @@ static const struct dmi_system_id asus_quirks[] = {
}, },
.driver_data = &quirk_asus_x550lb, .driver_data = &quirk_asus_x550lb,
}, },
{
.callback = dmi_matched,
.ident = "ASUSTeK COMPUTER INC. UX430UQ",
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
DMI_MATCH(DMI_PRODUCT_NAME, "UX430UQ"),
},
.driver_data = &quirk_asus_forceals,
},
{}, {},
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment