From patchwork Sun Aug 4 15:21:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kristian Klausen X-Patchwork-Id: 11074775 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 33A1C13AC for ; Sun, 4 Aug 2019 15:30:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E26B28451 for ; Sun, 4 Aug 2019 15:30:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D254285A7; Sun, 4 Aug 2019 15:30:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7303E28451 for ; Sun, 4 Aug 2019 15:30:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726331AbfHDPap (ORCPT ); Sun, 4 Aug 2019 11:30:45 -0400 Received: from mail.klausen.dk ([174.138.9.187]:60062 "EHLO mail.klausen.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726181AbfHDPao (ORCPT ); Sun, 4 Aug 2019 11:30:44 -0400 X-Greylist: delayed 511 seconds by postgrey-1.27 at vger.kernel.org; Sun, 04 Aug 2019 11:30:44 EDT From: Kristian Klausen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=klausen.dk; s=dkim; t=1564932131; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=kzZtMPyFQj29WLbsIskMKcZWhwGgSFxYvwpEJXX+VYE=; b=WUJJRZh4Pb3Onox7kQeCAKSizr8aP5VnJaxSmAUxzmqzwNRKz0zz69NQNixWz7A0xrZs8X I5lBI3M15kjrblIF6BCwHcq+jNH5Jhpb9tyQsaTdTO2MZv1lFTKXt9ZOZvyZlyDvmTVnPD RNoaw/+xN4NhGKsUOU1j9OH4q1d5X2k= To: platform-driver-x86@vger.kernel.org Cc: Kristian Klausen Subject: [PATCH] platform/x86: asus-nb-wmi: Support ALS on the Zenbook UX430UNR Date: Sun, 4 Aug 2019 17:21:43 +0200 Message-Id: <20190804152142.7956-1-kristian@klausen.dk> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds support for ALS on the Zenbook UX430UNR to the asus_nb_wmi driver. Signed-off-by: Kristian Klausen --- There is a few other laptops in the UX430 series (UX430UA, UX430UN, UX430UAR), which probably need the same fix. Would it be better to match against UX430? drivers/platform/x86/asus-nb-wmi.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c index 2ebde0174937..b361c73636a4 100644 --- a/drivers/platform/x86/asus-nb-wmi.c +++ b/drivers/platform/x86/asus-nb-wmi.c @@ -402,6 +402,15 @@ static const struct dmi_system_id asus_quirks[] = { }, .driver_data = &quirk_asus_forceals, }, + { + .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. UX430UNR", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."), + DMI_MATCH(DMI_PRODUCT_NAME, "UX430UNR"), + }, + .driver_data = &quirk_asus_forceals, + }, {}, };