summaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/alienware-wmi.c
diff options
context:
space:
mode:
authorChang Liu <foggy.liu@gmail.com>2017-11-16 03:35:07 +0100
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2017-11-27 12:39:11 +0100
commit700b256be9e8f1079638d630a3b2a60590963023 (patch)
tree5962f48bdd38f9a97e3767d97309884be858125f /drivers/platform/x86/alienware-wmi.c
parentLinux 4.15-rc1 (diff)
downloadlinux-700b256be9e8f1079638d630a3b2a60590963023.tar.xz
linux-700b256be9e8f1079638d630a3b2a60590963023.zip
platform/x86: alienware-wmi: lightbar LED support for Dell Inspiron 5675
Inspiron 5675 lightbar compatible with WMI interface on alienware, the difference lies in the zone number and color control. Add Inspiron 5675 DMI quirks to detect by dmi_check_system(). Signed-off-by: Chang Liu <chang_liu4@dell.com> Acked-by: Mario Limonciello <mario.limonciello@dell.com> [andy: massaged commit message] Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/alienware-wmi.c')
-rw-r--r--drivers/platform/x86/alienware-wmi.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/platform/x86/alienware-wmi.c b/drivers/platform/x86/alienware-wmi.c
index 4eb8e1a472b2..9d7dbd925065 100644
--- a/drivers/platform/x86/alienware-wmi.c
+++ b/drivers/platform/x86/alienware-wmi.c
@@ -68,6 +68,14 @@ struct quirk_entry {
static struct quirk_entry *quirks;
+
+static struct quirk_entry quirk_inspiron5675 = {
+ .num_zones = 2,
+ .hdmi_mux = 0,
+ .amplifier = 0,
+ .deepslp = 0,
+};
+
static struct quirk_entry quirk_unknown = {
.num_zones = 2,
.hdmi_mux = 0,
@@ -171,6 +179,15 @@ static const struct dmi_system_id alienware_quirks[] __initconst = {
},
.driver_data = &quirk_asm201,
},
+ {
+ .callback = dmi_matched,
+ .ident = "Dell Inc. Inspiron 5675",
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+ DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 5675"),
+ },
+ .driver_data = &quirk_inspiron5675,
+ },
{}
};