From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753882AbbE0Ts2 (ORCPT ); Wed, 27 May 2015 15:48:28 -0400 Received: from ausxipps301.us.dell.com ([143.166.148.223]:63498 "EHLO ausxipps301.us.dell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752362AbbE0TsX (ORCPT ); Wed, 27 May 2015 15:48:23 -0400 DomainKey-Signature: s=smtpout; d=dell.com; c=nofws; q=dns; h=X-LoopCount0:X-IronPort-AV:From:To:Cc:Subject:Date: Message-Id:X-Mailer:In-Reply-To:References; b=SL1ZSWlv9jHD/H6wJ2Omxn0fhwJrRQL8pspZJ0Fj2TgV7OXXgwBidoZY Irel2JhARC9W8ZoR/pRmeeCOWF9KDblCeJBK2cRPstmnRBltrJWVJ7+Xv qIZ1FomVFVy8JQoulsYU6UFZrSijUm/F1wZx7AGqQpnF3g2ueKEk74W0d M=; X-LoopCount0: from 10.9.160.253 X-IronPort-AV: E=Sophos;i="5.13,507,1427778000"; d="scan'208";a="659956245" From: Mario Limonciello To: matthew.garrett@nebula.com Cc: LKML , platform-driver-x86@vger.kernel.org, Mario Limonciello Subject: [PATCH 1/3] Add support for X51-R3 Date: Wed, 27 May 2015 14:37:00 -0500 Message-Id: <1432755422-26024-2-git-send-email-mario_limonciello@dell.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432755422-26024-1-git-send-email-mario_limonciello@dell.com> References: <1432755422-26024-1-git-send-email-mario_limonciello@dell.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Upcoming platform X51-R3 will support 4 LED zones. Signed-off-by: Mario Limonciello --- drivers/platform/x86/alienware-wmi.c | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/drivers/platform/x86/alienware-wmi.c b/drivers/platform/x86/alienware-wmi.c index 1e1e594..69f9d72 100644 --- a/drivers/platform/x86/alienware-wmi.c +++ b/drivers/platform/x86/alienware-wmi.c @@ -69,11 +69,16 @@ static struct quirk_entry quirk_unknown = { .hdmi_mux = 0, }; -static struct quirk_entry quirk_x51_family = { +static struct quirk_entry quirk_x51_r1_r2 = { .num_zones = 3, .hdmi_mux = 0. }; +static struct quirk_entry quirk_x51_r3 = { + .num_zones = 4, + .hdmi_mux = 0, +}; + static struct quirk_entry quirk_asm100 = { .num_zones = 2, .hdmi_mux = 1, @@ -88,12 +93,12 @@ static int __init dmi_matched(const struct dmi_system_id *dmi) static const struct dmi_system_id alienware_quirks[] __initconst = { { .callback = dmi_matched, - .ident = "Alienware X51 R1", + .ident = "Alienware X51 R3", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "Alienware"), - DMI_MATCH(DMI_PRODUCT_NAME, "Alienware X51"), + DMI_MATCH(DMI_PRODUCT_NAME, "Alienware X51 R3"), }, - .driver_data = &quirk_x51_family, + .driver_data = &quirk_x51_r3, }, { .callback = dmi_matched, @@ -102,7 +107,16 @@ static const struct dmi_system_id alienware_quirks[] __initconst = { DMI_MATCH(DMI_SYS_VENDOR, "Alienware"), DMI_MATCH(DMI_PRODUCT_NAME, "Alienware X51 R2"), }, - .driver_data = &quirk_x51_family, + .driver_data = &quirk_x51_r1_r2, + }, + { + .callback = dmi_matched, + .ident = "Alienware X51 R1", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Alienware"), + DMI_MATCH(DMI_PRODUCT_NAME, "Alienware X51"), + }, + .driver_data = &quirk_x51_r1_r2, }, { .callback = dmi_matched, -- 1.9.1