Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6731855rwi; Mon, 24 Oct 2022 05:32:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5OVBYbbsP0DhmcWtcw8EshC5ceEYR57tBktl+sBgPWov8YeQRVll/8+R5cKf2KtolBegdS X-Received: by 2002:a17:907:728c:b0:78e:2856:7fed with SMTP id dt12-20020a170907728c00b0078e28567fedmr27381266ejc.2.1666614759242; Mon, 24 Oct 2022 05:32:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666614759; cv=none; d=google.com; s=arc-20160816; b=I2j0rwyZ5TRo6keMLeT3xYEH90Vs72iVmMQ7Qy8A2K7LRy+kgOjlqtamE4LeAV6OLZ Ov9ZzwtcBYc8x30TF+8J/najSrF0v1ZZDg3vUFOrwlfpjIh8uf+JBBjTmOV6aA8bjgZs qhMytWA6eE0zUbmtOzy7ge6mIlUWKkkfDI2yvFXUa8gGma3fqLoQovn/atl/Dw/Dd5o1 jCBhl9/KolVlF2pTbrJi3MIIL1O7j3a7J3C4lgv0uK8SnIP3G64xuuc4DY1jz6CBgAoY T/HKuH70m7T2+TLdtP3gXkKXouQtoSLQ6CULdg1y8zfiqMD6Z8kcOkK/RgmthFmE1IY+ fmyg== 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=c3/qt1OzaBc9a5GsaEcxXWSHAm3X31gczykCRrhGnKw=; b=W1GvlnAQeGmZOcEWwieW5HLSx2TRYO9UQPg3GM4E0L7OrGzxmsPyDtjbu47yIbSKRQ KhYidsOu759sv+0U8hGACAWoSaYOhODBmFPBEGZUxYxgAnhqsgqtpfvsSpcQVI1PCOG/ F093q6RfydGZ9CZpUtKk6GjvCNvG5ogR37xlGKbM0t2N/iWg1Id381fjOmg2Au058/pZ GC98ULk5FdpQQL7xsZStNoalUs0jYez8uNXO4yhXlZv0GSEvJ3PBLQhGk5JP3e++6kcE D6x5NMXj9DeVe4IWpw/q58Vk5t+8BQYao7CE5oPlPaERhZEPM/gHlqN+RtCEkEBjDlFY tRQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=lOEcU4RG; 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 go33-20020a1709070da100b007a8beb3aa4csi2493940ejc.872.2022.10.24.05.32.11; Mon, 24 Oct 2022 05:32:39 -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=lOEcU4RG; 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 S230519AbiJXLjc (ORCPT + 99 others); Mon, 24 Oct 2022 07:39:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230502AbiJXLig (ORCPT ); Mon, 24 Oct 2022 07:38:36 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D31059EA9 for ; Mon, 24 Oct 2022 04:37:57 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id l22-20020a17090a3f1600b00212fbbcfb78so3135962pjc.3 for ; Mon, 24 Oct 2022 04:37:56 -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=c3/qt1OzaBc9a5GsaEcxXWSHAm3X31gczykCRrhGnKw=; b=lOEcU4RGCEfGg+wnfVs0l7n30cTg9FbZcgkthaptWevuzG9Ssi+9oWFgfDpyitG3Tk OuLI1JcLxzeALUawRzgQ4OCHUQAGKneDBweTsEC2z2rv/dy7b2CVz85QxzVHNDeK3Mlb xsxvq1aCJ5rCSCJDSgTd1x0eL49i7F01FPf3bevhsJTjMKGOtn1fRwPcWjyhr7lR2spk XeIQqVeTz/3QdhnRwjU1wp6PSyaOIKZ5MzRhwmkzlX7C/eeOdJtAKw9fT8Pc1B5311gv y6ZojtRQW/tr/7t2nMkDZNTzuYYeLPsaTucm9GFd6bYXgmrWG6KMd06zb2097bHNbdj6 vLsQ== 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=c3/qt1OzaBc9a5GsaEcxXWSHAm3X31gczykCRrhGnKw=; b=28M1jeBRo6jIbYLQJdqIMB/AyKiPxsA8Mbvw2BtUIeaFARpYvdFic7bdrC+1lmQY9O bN1JrH55KIMmKctcRRIYb5RzMTfUntba4G/0HcwTBb8PmagKbn5yLTp1XtdUjR7rD/Vn 8/ZlKdzKwNd4d9XJ3ezaUsSVvAKIkmR/VRneYUfBBNk6tcFz5CDMJC3duESj/4zpSLun E/7xDwv31G9gkrcK894m9B9vOGzzj5XCO6CF1324DjbIlsM9AYfEUXpqpYLCzpAlR3wf 7jeU75S1xMWdE+njz3gYcvkkATlb6wm+aID9whTQ1K9XkvmSnehO+s1i0PRLxRx+WkMJ oCGA== X-Gm-Message-State: ACrzQf076C+39Z+bFqXer3FMY/Q1rkv/Ntaovdm/Dl30BMUXOC4L+eKA hCGuoTA4a8iD7dTUpibm5Vpbcw== X-Received: by 2002:a17:902:7281:b0:178:388d:6f50 with SMTP id d1-20020a170902728100b00178388d6f50mr33837351pll.127.1666611416833; Mon, 24 Oct 2022 04:36:56 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 04:36:56 -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 09/22] platform/x86: fujitsu-laptop: Use acpi_video_get_backlight_types() Date: Mon, 24 Oct 2022 20:35:00 +0900 Message-Id: <20221024113513.5205-10-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,SPF_HELO_NONE,SPF_NONE autolearn=ham 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/fujitsu-laptop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/fujitsu-laptop.c b/drivers/platform/x86/fujitsu-laptop.c index b543d117b12c..e820de39cb68 100644 --- a/drivers/platform/x86/fujitsu-laptop.c +++ b/drivers/platform/x86/fujitsu-laptop.c @@ -387,7 +387,7 @@ static int acpi_fujitsu_bl_add(struct acpi_device *device) struct fujitsu_bl *priv; int ret; - if (acpi_video_get_backlight_type() != acpi_backlight_vendor) + if (!(acpi_video_get_backlight_types() & ACPI_BACKLIGHT_VENDOR)) return -ENODEV; priv = devm_kzalloc(&device->dev, sizeof(*priv), GFP_KERNEL); @@ -819,7 +819,7 @@ static int acpi_fujitsu_laptop_add(struct acpi_device *device) /* Sync backlight power status */ if (fujitsu_bl && fujitsu_bl->bl_device && - acpi_video_get_backlight_type() == acpi_backlight_vendor) { + (acpi_video_get_backlight_types() & ACPI_BACKLIGHT_VENDOR)) { if (call_fext_func(fext, FUNC_BACKLIGHT, 0x2, BACKLIGHT_PARAM_POWER, 0x0) == BACKLIGHT_OFF) fujitsu_bl->bl_device->props.power = FB_BLANK_POWERDOWN; -- 2.37.3