Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6740310rwi; Mon, 24 Oct 2022 05:38:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5CP0tU5naXDOsLIoCDKNpx3RlUAZTzIp8gFr1dYrl3skaewwafKBnL01Z/yEyM7J8oNmNI X-Received: by 2002:a17:90a:1c02:b0:1e0:df7:31f2 with SMTP id s2-20020a17090a1c0200b001e00df731f2mr72064153pjs.222.1666615121398; Mon, 24 Oct 2022 05:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666615121; cv=none; d=google.com; s=arc-20160816; b=dhvenZDNZbtz3uasogj9szcvsokIaDUejxfoMfMNhAzivBpReTqC2YX7omHG/MaGCY q6q8vjuIm+6ve8gycQ/1j3zRaPk8Giht33rSBzVcWFgNqhzezMOO52BXySsSXOuWX/lR bS1v2zzuzHMhSt68/wbG3yfIl2shvTftuCMmTvOkFDt2Ze+CErozhEgHykfJE+Y1tyjr Wfxpb1VNzQ1ebejLkaobBwB5tLl2mUl0jDilEbU0I+Cx4fSCOhwEgTvRgSaRJ8gQG9/M ZQnRACKh3NtG6Vi4ej9sXZdAcgZqsf/YKROfg/vbrlTbH4+k5VSjkrkPhecouMgKrhdm 4yLQ== 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=mHmQPHH9zZ+33MZuRep7mHnwYbLIC54t+fSNOg5Y268=; b=ndYoPHMygCgCLgn8vsaoSQsfAgqA4UPv5TK3LZNkADBcC4Nlt0dW6Za2HcNSV4Wenm 4woBZbTeIn+a8nzD0EI1JzVsxV2yTiLQm+2tDUmcqXcsxcMQtN4mHUM8OT0A4EZwbZE8 GSaJdjsEfOt28qpLhNtQmSgVnC55ENJ6gVfBP0gT6NlKK23WHR8OqzH2jxE6WSVONnjY h/UGMryl44N/UPg+dcv/pplqqFJQJXiWYUnHlb0YhYXMcpOlljqKSwqYUuWY8c0bxRp3 Grxv4EyNbupJsg7sXNUZJPvScDhGM+/SjKo4r23juMuX47JRKcv9g57/mCM6G+l+w9Vd zxfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=RqE7F5Mv; 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 69-20020a17090a0fcb00b00213193e7047si2330126pjz.185.2022.10.24.05.38.29; Mon, 24 Oct 2022 05:38:41 -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=RqE7F5Mv; 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 S231270AbiJXLjv (ORCPT + 99 others); Mon, 24 Oct 2022 07:39:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231276AbiJXLi6 (ORCPT ); Mon, 24 Oct 2022 07:38:58 -0400 Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2135321BB for ; Mon, 24 Oct 2022 04:38:03 -0700 (PDT) Received: by mail-vs1-xe2a.google.com with SMTP id h4so7559680vsr.11 for ; Mon, 24 Oct 2022 04:38:03 -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=mHmQPHH9zZ+33MZuRep7mHnwYbLIC54t+fSNOg5Y268=; b=RqE7F5MvPhA2qPYcGDMg2WC36c/ya8S0CaGTkCLFCoNSy0LYw2pEJBOB/IKoaCEWaV b6+79fB4tTanoZBjY7Fo2X/0NYabUzhBlMuelQGTz957EVppUy7uLHG6QaZSla3B9yXQ 6OXhn032XHxg5QRkvk/FCqxh1nFf72KOtez39VVtVU2ZobrTkzAarpAdLc1MHIUicZ7x 9IrA8KyX2n1Wc8SGkUaFWVryKzby7j8MCVQOn4hgQjEY8G1/JwHmHTRLpbfS7RTYinzr NNc6x9W1fERMFC/C80tkaVI7MUT/2fXwRFpEdbUrqzdctaRtNeCvR6lKd2fKNhihIYhG 3RWw== 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=mHmQPHH9zZ+33MZuRep7mHnwYbLIC54t+fSNOg5Y268=; b=O9BtKqo7VEJBc3X44BnzOHjcz+vOiuROB+m3expOj6d4c7aqHTA0GZz5MILS0f5sa5 s7ziRL9ayBbsfQCWKmFDqLoQWUrGdr6W0TfDyyjVNJGnLPJyZ3kQhKjbbIf5JepoNFCz xkl+7rsTGqFIsnP251cwMZ8ml0CEj1Gz5+Mbg9Hwgl8vK4RWuIck3+nB0UdFqvSFto5b sV1SargRkbZgub0cCAReAFdmZs+eyydAL3ZD7dEQ5572ihF37cI2U81X0SGvKbY5xp76 Farc+QA7i7hfNgNdAeEWAjD33AcMbl9vkq+7KrtFT1uVe2Y9HAtPBXZXlpMdHN1JTkEw BDkA== X-Gm-Message-State: ACrzQf0KHnHohe9h+ygXMWsjMBFsRoZnfePzJPn49lmi73KojDUDNmRZ vT7MCDgqJCcb1oFtf8sfP3IVCZln1NX8sL19 X-Received: by 2002:a17:902:7c8c:b0:17f:7565:4a2d with SMTP id y12-20020a1709027c8c00b0017f75654a2dmr33857671pll.65.1666611374702; Mon, 24 Oct 2022 04:36:14 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 04:36:14 -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 04/22] platform/x86: acer-wmi: Use acpi_video_get_backlight_types() Date: Mon, 24 Oct 2022 20:34:55 +0900 Message-Id: <20221024113513.5205-5-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=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/acer-wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index 18224f9a5bc0..10d0819e48ff 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c @@ -2421,7 +2421,7 @@ static int __init acer_wmi_init(void) set_quirks(); - if (acpi_video_get_backlight_type() != acpi_backlight_vendor) + if (!(acpi_video_get_backlight_types() & ACPI_BACKLIGHT_VENDOR)) interface->capability &= ~ACER_CAP_BRIGHTNESS; if (wmi_has_guid(WMID_GUID3)) -- 2.37.3