Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6687318rwi; Mon, 24 Oct 2022 05:01:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7cwHEnbu7CQDSagKcSKMMj3jRe5vgL0sTniEzVbXU8l2N6iMkHCmZdC6rUySEIeavqdiIU X-Received: by 2002:a17:90b:38c:b0:212:fe14:4ba0 with SMTP id ga12-20020a17090b038c00b00212fe144ba0mr8575439pjb.138.1666612895061; Mon, 24 Oct 2022 05:01:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666612895; cv=none; d=google.com; s=arc-20160816; b=iVoKQhZDmpjpWR8n6pA4asN9XbBR4Bxuve4xYQ1i5+fiO2UmSHYO3x8UoBX2Eh8iyX 8YUFBmBOQ95eMN+Mg3VmUj+Rf72WteIFdcJkxL1V4nmtX9wNSYUu06YO7fr2tkhJxeWa dhs6lkYqwnbIDk9pRbnoGDXLXhTQWsshc4PYGbm6EFADpHn/vJV/2MO5SZVyq46WOQsw KSYq6Zvg7amsJXsH+OrHxmCmw1Lj02WseiLwtW31ou07fleQfew63zsmU9/Gp6GPJObK 9alQGqQ+eH6TU37UGpv3E35gIGmkA+EL3eou95DpfcD1emiYZuFf/aamLQUhG0XRGmLf jL0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=gF1+dr0UmSLKg5C/+t+S2XzPWm1zDrjsbQX8+igR+aM=; b=FUAvZL2To5/8FWe7nNZ/lfbQPBMFMBfLff87VOILk7Taicic5adtY8mlBTO1HZT+nL 6XXCo7Qf7jRnVE0pxz5rRkk3YQdjKKaP1gRwPNW/+RFpKL9mMGyTRuQmOWx+bTbY23Yi ioo2Mw+6FX/QWQZZyKin0T8R8Fy4BzeqqXS/DYAUozmDs69yLlKllSkjS+y1KvnJTWB5 kTueOIj8e24FCmse3545Nzu7FOmj0rQWNXAmK6M8hbf0bNFNvvaz4dgATBMkIP49q7+/ DmUbeurVRnRXRiMiXFWdSGyk0NopaZOdZlNmtzgYPMzoOxMjk7hECT6IvVvBVO25TSHg omZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=TUaer4Hd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g4-20020a63e604000000b0046ebb90e5bdsi10902222pgh.337.2022.10.24.05.01.22; Mon, 24 Oct 2022 05:01:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=TUaer4Hd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231359AbiJXLkS (ORCPT + 99 others); Mon, 24 Oct 2022 07:40:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231340AbiJXLjD (ORCPT ); Mon, 24 Oct 2022 07:39:03 -0400 Received: from mail-pj1-f53.google.com (mail-pj1-f53.google.com [209.85.216.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 286156E899 for ; Mon, 24 Oct 2022 04:38:33 -0700 (PDT) Received: by mail-pj1-f53.google.com with SMTP id f5-20020a17090a4a8500b002131bb59d61so1103028pjh.1 for ; Mon, 24 Oct 2022 04:38:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gF1+dr0UmSLKg5C/+t+S2XzPWm1zDrjsbQX8+igR+aM=; b=TUaer4HdAj1V1/KvIiqeuDXfW6xDWwEMoGs5n4ogyUIGkys9QMhjDQ+bVY0ELC/Zv7 bWVD8iLyFzbkfcDLx8DVuEuAt6agWLfXnGroETWUA/WUAxEudlmKwVrZP9YEJ60SqpQO uEgVtlcZHMdUxEmxBez2o4LXL4xr7pLMNs2npVpTCCV+56sUo0X53wm7kZWeulN1UxgY mJboZRkxMVHWvPMsPje9/uDltkPOywQSfMmTJicM2HoXPo4wyYb1scm4m6G+r2+bzHd8 Sbxk521dG9VmXqWc9Od5r0OBVoSlAsHO2hUBuwny+NvTx3MjpnZ1sqjNKvam6yq5PSwk iKPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gF1+dr0UmSLKg5C/+t+S2XzPWm1zDrjsbQX8+igR+aM=; b=ndVW9wSVVMyJ8h9p8YifzkvlMNXonCV+WfRl4skpwHcIrls3EyEU0CYaEXb2YAujdh 2cWO3IIeSsBrTYUgS8hXEAaG/PA0rxD+W/uSfCmE5t1jZ4MWMoOI9NnYHHRdbIDieDaK NVCsCAV0e032vOR1U3gtGmKKtrtfW3hOkbpFTruXtnmwUqBibY0hPHS+i18SSZmqxnWj 43elA5bIEprcgK24Rw7/YA2jrLGeox3BEOMFZJp/5mn8WN+h0nU7PAB2UnWEiHNUAtDv zTU+0M/nUCrN0hfALI9jZ7gWT4x35CCikYkbV6SRMPtgIref+qYpo2nw8X8xFdiyR8Pv cOvQ== X-Gm-Message-State: ACrzQf27+Pp5d5iL8Q+JSUrXfnE6zGbdt60MV1dXnztX66ihpob9prE7 rmUoB6or5Ll1cOLbpyQYGbDpmA== X-Received: by 2002:a17:90a:29e4:b0:20a:f9d5:c10e with SMTP id h91-20020a17090a29e400b0020af9d5c10emr75009289pjd.132.1666611391524; Mon, 24 Oct 2022 04:36:31 -0700 (PDT) Received: from fedora.flets-east.jp ([2400:4050:c360:8200:8ae8:3c4:c0da:7419]) by smtp.gmail.com with ESMTPSA id b8-20020a170903228800b001830ed575c3sm19475075plh.117.2022.10.24.04.36.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 04:36:30 -0700 (PDT) From: Akihiko Odaki Cc: David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Jonathan Corbet , "Rafael J. Wysocki" , Len Brown , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , "Lee, Chun-Yi" , Hans de Goede , Mark Gross , Corentin Chary , Cezary Jackiewicz , Matthew Garrett , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Jonathan Woithe , Ike Panhc , Daniel Dadap , Kenneth Chan , Mattia Dongili , Henrique de Moraes Holschuh , Azael Avalos , Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller , Robert Moore , dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, intel-gfx@lists.freedesktop.org, platform-driver-x86@vger.kernel.org, acpi4asus-user@lists.sourceforge.net, ibm-acpi-devel@lists.sourceforge.net, linux-fbdev@vger.kernel.org, devel@acpica.org, Akihiko Odaki Subject: [PATCH 06/22] platform/x86: asus-wmi: Use acpi_video_get_backlight_types() Date: Mon, 24 Oct 2022 20:34:57 +0900 Message-Id: <20221024113513.5205-7-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221024113513.5205-1-akihiko.odaki@daynix.com> References: <20221024113513.5205-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org acpi_video_get_backlight_type() is now deprecated. Signed-off-by: Akihiko Odaki --- drivers/platform/x86/asus-wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c index 6e8e093f96b3..55cca068f783 100644 --- a/drivers/platform/x86/asus-wmi.c +++ b/drivers/platform/x86/asus-wmi.c @@ -3259,7 +3259,7 @@ static void asus_wmi_handle_event_code(int code, struct asus_wmi *asus) code = ASUS_WMI_BRN_DOWN; if (code == ASUS_WMI_BRN_DOWN || code == ASUS_WMI_BRN_UP) { - if (acpi_video_get_backlight_type() == acpi_backlight_vendor) { + if ((acpi_video_get_backlight_types() & ACPI_BACKLIGHT_VENDOR)) { asus_wmi_backlight_notify(asus, orig_code); return; } @@ -3802,7 +3802,7 @@ static int asus_wmi_add(struct platform_device *pdev) if (asus->driver->quirks->xusb2pr) asus_wmi_set_xusb2pr(asus); - if (acpi_video_get_backlight_type() == acpi_backlight_vendor) { + if ((acpi_video_get_backlight_types() & ACPI_BACKLIGHT_VENDOR)) { err = asus_wmi_backlight_init(asus); if (err && err != -ENODEV) goto fail_backlight; -- 2.37.3