From patchwork Mon Oct 24 11:34:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akihiko Odaki X-Patchwork-Id: 8390 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp394738wru; Mon, 24 Oct 2022 04:40:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM79mHvAEJUYeRDdsgskX7mcM+sprWdFrAI49EQowgqeWHG5WmPfDwxNwzu6u3/7cY54BHQK X-Received: by 2002:a17:907:628f:b0:72f:57da:c33d with SMTP id nd15-20020a170907628f00b0072f57dac33dmr26888049ejc.374.1666611653530; Mon, 24 Oct 2022 04:40:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666611653; cv=none; d=google.com; s=arc-20160816; b=Mrsm8vITbzNltzGMvLlF1NnhhBmc9o0YYfSJtOKCUUgBAUXpUT68vLKIzC/l3o5OhS fEE/mr+qaJfKuJ5rFkaf8gKR5sl6b+7+U0fboATRkzkQp5ZPkwg/CSES5Cy/6Nv3sgla TRWJyz/3C0dG84bDfPNmh3ujsRjg20LHazZj85NIWZ4VrEiic6K6UigqzB01Ln1CLJLc 7oLtEzDY/9Bnog4Ds8O7/G0Rnw6kfOTdRWxJrWg2/Y4t89FgaK3LKPIQ0tC6GVF1jhUl b5Sc6Q93d/mBLVM6+tnOnjy4nGDo7FZ3Y5xVV7yM6VxZnoC0znKOqevCPOCtS35oenqB Adyg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b15-20020a056402350f00b0044ee4ec8915si32083500edd.39.2022.10.24.04.40.29; Mon, 24 Oct 2022 04:40:53 -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_Roh=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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747568981218791225?= X-GMAIL-MSGID: =?utf-8?q?1747568981218791225?= 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))