Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6740230rwi; Mon, 24 Oct 2022 05:38:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5M+hrUGSo7ZNDUIrDFev1HwTNn3OS12XhV63esHkNIfKHnSdbh1YWW3xkM9wKd81IL7yHs X-Received: by 2002:a63:d90c:0:b0:462:cfa2:285b with SMTP id r12-20020a63d90c000000b00462cfa2285bmr28088658pgg.202.1666615118401; Mon, 24 Oct 2022 05:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666615118; cv=none; d=google.com; s=arc-20160816; b=CFppYecSB17N1UbGIu6pUxwAIZzsGcGUCEiTjKrzKYmL6NoE6YRKzncAFYPw0RX6II M4fFjQQMf4SRPw/gOP2xJnS+FyDvaOenVgO9EE8yOl2VDNDX55AhjGJ11nzaAM127QXd G9GgmJG6Xw8TqfN441s5WQ4DXN8cOXTiV8++bBc1+k6IILc4BZE2ajA46kf2tix57dM2 MPp2Kdxt4pq+4HThCe6fp3XWf1ooypbA/Gubgu6LdYjp82I2vA4VJKkLvaApGqXLIOy4 TV2I9h4gEDaCSx5MHLWrCikdwy+PeWNc+PoNIeIigmeiHME9cPJWurQFooHR3U1rfVb0 3oZw== 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=FzYckbVTu84cFuvQYLHBAleZORC/YQBRLh0kCNSwM7o=; b=w41nOYnyMB3KC/WQHyFgFRYK/vcNzhUKvSRXP8jqDaMcfZ851JRC5Wy1wvm6hHvPpZ yY6oq7UD9cA0SHVoTDwAul3DBMwwxndcCu+NFzd04KopCwKJ+JpACt1iQ0r4AD5o7Y3N WUxh0cebKCL5xCakwnRmYVY7UpL2eLcwlAIOD3ipfXLZfpcVusb+D3oLrkLLmy4+I90v An2sJlV5bhSPRjv5HcoIEcXogQxkfRt+5K1hRmLreGiaeonZIjllpvS0N2ItWXPRsZTy nxiIze5UdgM36esUPeGtQqAND8Un71XMIaMpe3KSznwDKzb8WDCzvEh9Lo5Knn/rzS6v pRxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=iBmB5k8O; 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 c14-20020a63724e000000b00439ae52c996si33412785pgn.71.2022.10.24.05.38.26; Mon, 24 Oct 2022 05:38:38 -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=iBmB5k8O; 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 S231351AbiJXLkO (ORCPT + 99 others); Mon, 24 Oct 2022 07:40:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231344AbiJXLjD (ORCPT ); Mon, 24 Oct 2022 07:39:03 -0400 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E790B6C958 for ; Mon, 24 Oct 2022 04:38:24 -0700 (PDT) Received: by mail-pf1-f177.google.com with SMTP id y1so8729103pfr.3 for ; Mon, 24 Oct 2022 04:38:24 -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=FzYckbVTu84cFuvQYLHBAleZORC/YQBRLh0kCNSwM7o=; b=iBmB5k8OKAjf/Xfxgs/hagECXPJWV1vTEOyWaHgXEXGGuvWdPS3TIcFuqN2vljOt/3 nNxtvkj18I0SllZUWw1t8qqvPmaaAP/Ih4C/z6eW1oEg/YHBwNE/UBrQc6mXtkTAyvYj FRBgnjpPaQlPvG+Y3I8gbe9DDVTlZH0hAaXfoiGfSlX3bhk3XTqmJy1s3Zn6Jxm7ASHo 5qpBijR2lRjm+mURr8kmnNH7SvMPVVmMWVtI9kd+jgDbk3k+yebqsm9WcqXOGkuW8EHo ONz+AiYuv6fxJZh8VBFUV+IvV75FH4hihqZWU8KhCWTYY3SL2W8//2gxAwO5cZ7vPvF7 RcQA== 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=FzYckbVTu84cFuvQYLHBAleZORC/YQBRLh0kCNSwM7o=; b=QA/4VgfOsMMh0i95PJCMyslKsWdMM8tfjfmqIkFFKWXQzErlgNU5JubVDJlPnjjJMf FYS/Yq0aWRLNOi6R5on7tJzxhPCm1dVGkPSJp+Sa1lcKZq2Emng0+hlUZ1NKr6cgJMV3 NqwD7ieomzQKSmCTZAha5Ai66EGwqMzAVYoutBoLIg+V8M7ST6kpHAvlMXqy+7K1/yj5 E0zLmkeFhCOUbRSNYCmFL3AxIlwWENLXuv/2tq8/7QLv+qybnuVXaMwbyFBxeBbaiHl3 sRsmXN5/vSqvq8NBjsVv0Wg8fE7G67xzuU1OAs6ZVLU9qlvDWMXiYit6PLdlOAe0lj3H 7D+w== X-Gm-Message-State: ACrzQf1xndQ3t0UwWHkMKobkzL/qNLaD7y1gP/Xr/iwKBqT5JxWl7BM4 DarMoZTMcoSV+1SV6CwyZpYQow== X-Received: by 2002:a63:2a86:0:b0:46a:eaba:f1f3 with SMTP id q128-20020a632a86000000b0046aeabaf1f3mr27591150pgq.79.1666611383075; Mon, 24 Oct 2022 04:36:23 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 04:36:22 -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 05/22] platform/x86: asus-laptop: Use acpi_video_get_backlight_types() Date: Mon, 24 Oct 2022 20:34:56 +0900 Message-Id: <20221024113513.5205-6-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-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index 47b2f8bb6fb5..fb7f9e8ca6c4 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c @@ -1854,7 +1854,7 @@ static int asus_acpi_add(struct acpi_device *device) if (result) goto fail_platform; - if (acpi_video_get_backlight_type() == acpi_backlight_vendor) { + if ((acpi_video_get_backlight_types() & ACPI_BACKLIGHT_VENDOR)) { result = asus_backlight_init(asus); if (result) goto fail_backlight; -- 2.37.3