Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6985173rwi; Mon, 24 Oct 2022 08:26:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4OdxDJbycQy8w1eiuPmO9bAqDvooRLYvggf6P8ba/3chg3mkOJCiRikJK/8NUqkVecv/Yb X-Received: by 2002:a65:5605:0:b0:46f:1e8d:ece9 with SMTP id l5-20020a655605000000b0046f1e8dece9mr1999480pgs.249.1666625180063; Mon, 24 Oct 2022 08:26:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666625180; cv=none; d=google.com; s=arc-20160816; b=AL1zderr1qCfILF7MN8WFCLZIwqon/ZlTIeYrH1tQlfV29jMBFAWYPqS+O9X/ICZjb 5364oTRREYZQVeKSFCA5ff9Lw6bqE5RydbtAxR2Ef++6KSO2y6CXL3R/qoFCimP54Sup YS45dWk4e3g+cDOhLkGjfVj/1aZukz5m2xWkhBIHNHMNQpbppsjTr/KvzXwNuScUbiGf IWe2goNQ9Trld8abRBBQtR8K5PWDt6c1W03E/XyQezhCk1JRiGdSR3QMt+oJYTFE4FWB mpnZLB+Styh7ytJARdhqKza6lB2cigtmL3pkz3Gnh8Zpd9ry6Ote9PeNogp2lLv2Cnl4 uzFw== 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=zZ4fJ8ClD76WOV59defp1HNsujn8j/wysmVCUMoMFP0=; b=tuw7do/5w7mT3hQridonewWWcYxTkAycRSrizBvBSvCyXZm7GcmnwHlgztSKCSVPHo Ryu7wBN85qsaccy+yNwk2pJzIk9oYI5x08YJMID9k9mCgkUKzTHrtKMYA/xLLJHv2Wvr wLfBX17AmRhEKZNWCmhRBt4ipVBFim1EVY6Eks9wzZpJm7Ws0agNL4mkjypOZ8rrxarc FWMbbLCXl7X6Z6KCCFQ2/bikFPeSDiVsxu0c53GHWmUGabue3ssrDmgNYMWwWg3Nrido N016opEsp9fp4ANdp93ctocJAN9UD7NzLGwooFVl+maL1rY9xRbVYH2OeRkXnshmyRCX SpcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=UR+PH3NV; 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 i17-20020a631311000000b0045a5d846af1si32177062pgl.134.2022.10.24.08.26.08; Mon, 24 Oct 2022 08:26:20 -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=UR+PH3NV; 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 S234121AbiJXOxt (ORCPT + 99 others); Mon, 24 Oct 2022 10:53:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232350AbiJXOxU (ORCPT ); Mon, 24 Oct 2022 10:53:20 -0400 Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76FEF24973 for ; Mon, 24 Oct 2022 06:31:17 -0700 (PDT) Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-13ba9a4430cso3103555fac.11 for ; Mon, 24 Oct 2022 06:31:17 -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=zZ4fJ8ClD76WOV59defp1HNsujn8j/wysmVCUMoMFP0=; b=UR+PH3NVHkn0NXOqzrKguYWXOraM6vc+YMLhwexhonJG8F77DnrNQYz/9Oi32n6IZY hZlL47vjA7//LH91lqAnjQLn97I5Vo+uQOT2Mmd2Dn63q/EMVrrHlQ7z/zyp6JLWsxqs lxvzOwrP2RQb+dCGiNci0WZm/2NZcPqe1IwnSjthC31l/f7IFTIDv5x71IwBvf93+VC0 KH/KMjo1itzSNE11bqoR8Syfpkg0shlSYQXBydHoh4+awRZYdMObrO029QbuDisy7sll ElVT/CB4tnxnE4FbCm2I0ONWyIQVGy4aFDiuXCQlrYYt0qq7o8pOl51CC0lnDxCtkS9Y 1uNA== 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=zZ4fJ8ClD76WOV59defp1HNsujn8j/wysmVCUMoMFP0=; b=mSzp/4dIa9x5aGTBA9tarR8FOBPkTCnUR4mRHltG5mvtMWYn9IV8rFYK5Kf2FRLXSP ckXe5BRJiXg9+t3Fbtv4Ylo+qhWlcvakppmIrw83oKBg0qY1ym/jb8b89FJtn0uTwig6 GystNH9oxMyFdREJ+GLRzcabR0pRgX8mgS7kKIlQXT7+jO2S4/5DPMEnWI2xWPv2LQJt Xp5LMZPnxl/dolOfa4YpXyltEVkKZhiw9H+r3blXzceIUu9S86RkYuNxmdCHyDuGf4wH M4//fUUM0OQkwYQiIF09duzk8+GKmDBzk0BxmUc/qbR6s8d2CsvrCX6ylmvGsYR27iKr FqcQ== X-Gm-Message-State: ACrzQf3O2tDYLzx8dRuJZAlvHo2+GD8fWY6XzZ8TDukzhp6Q3QGR2StA N8awX2h5zhzW9Sswermyx0HWgyLVpHrft6Of X-Received: by 2002:a17:90b:2317:b0:213:26a3:246f with SMTP id mt23-20020a17090b231700b0021326a3246fmr1763172pjb.148.1666611450483; Mon, 24 Oct 2022 04:37:30 -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.37.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 04:37:29 -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 13/22] platform/x86: nvidia-wmi-ec-backlight: Use acpi_video_get_backlight_types() Date: Mon, 24 Oct 2022 20:35:04 +0900 Message-Id: <20221024113513.5205-14-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_H2,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/nvidia-wmi-ec-backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/nvidia-wmi-ec-backlight.c b/drivers/platform/x86/nvidia-wmi-ec-backlight.c index baccdf658538..a42e3914c73d 100644 --- a/drivers/platform/x86/nvidia-wmi-ec-backlight.c +++ b/drivers/platform/x86/nvidia-wmi-ec-backlight.c @@ -91,7 +91,7 @@ static int nvidia_wmi_ec_backlight_probe(struct wmi_device *wdev, const void *ct int ret; /* drivers/acpi/video_detect.c also checks that SOURCE == EC */ - if (acpi_video_get_backlight_type() != acpi_backlight_nvidia_wmi_ec) + if (!(acpi_video_get_backlight_types() & ACPI_BACKLIGHT_NVIDIA_WMI_EC)) return -ENODEV; /* -- 2.37.3