Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6739732rwi; Mon, 24 Oct 2022 05:38:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM593oHi8gxh5AS2xZsWIWr2KuOURnuWA5tC/EdhH5/fxDlwygnwMFBCuMHBTmPZU7ey2Pbs X-Received: by 2002:a05:6402:e9d:b0:443:7833:3d7b with SMTP id h29-20020a0564020e9d00b0044378333d7bmr29612761eda.151.1666615095037; Mon, 24 Oct 2022 05:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666615095; cv=none; d=google.com; s=arc-20160816; b=ImN6oFPHokTQS1jSdfE9PjBxDl3I4vhvgw2OvTSZ62qMgF3UY3d06lvp6MKdIUJXyh RqcOdPvxHLHKQJVeo0QVm6kF4eK6IWjYVaj0LuRiZdcLcayV9MF4GPMLah1FOXpk9Az2 H3mQXSMeuPAZAaKRxZp4TRiO8cTRYKRZT7m4mOamVR7W4dXppFtao9Xe2l2F8OaNKfBT gGjtrfXe0hG7BSppPMgvNnxo/Lx2Hn/9X5Zscc3wArcQtu56mlyFQfma7i44a9rybsck 0kmztR5nt4ZOlBQ917ADB6wNVuTTEcs4N4SlUaOwC8zJ0ha6Q9xuVaTAHpmuDfObn0bD yZNA== 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=XAyFJiVGXrC/KZsleNIpi2nk4bcxYAI8Wjviz1KFor4=; b=C7jmEAq70aqeWB3qzfJBXlVChXl9dOTtzceDN95znzv1h72d90x5Bs2Tzwz7xWVyOl RD8+Y+3aLAMMtFG8fyX92geKdBB1VzYm2+TyIGaaUaehIpRlDFARZ1UBw53tc2PRJ0oT 95IAkddHHcYUXdpzlRaB24WZAfd5/rkMs5U9+93oNqNGkXHt5qRGkF3sp0GLhvAz3oPg coPWZ3FXsdeqFQVqVRlCrJYCH77rO3jzTsZtYMAgIWHVKep9XAe4BSqhykVyQ2oX3TAP C1fci9IuZOH+tsV9eCqvVFMJ5Ux4VJpelz6laeZAOsE83BF2q+1SBWyCRCmRY0V2U7lG /D+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=ZPJNNmG2; 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 a21-20020a1709066d5500b007835897050asi22155950ejt.83.2022.10.24.05.37.50; Mon, 24 Oct 2022 05:38:15 -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=ZPJNNmG2; 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 S231384AbiJXLkb (ORCPT + 99 others); Mon, 24 Oct 2022 07:40:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231396AbiJXLjJ (ORCPT ); Mon, 24 Oct 2022 07:39:09 -0400 Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C56136D9DF for ; Mon, 24 Oct 2022 04:38:31 -0700 (PDT) Received: by mail-vs1-xe2b.google.com with SMTP id h4so7562034vsr.11 for ; Mon, 24 Oct 2022 04:38:31 -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=XAyFJiVGXrC/KZsleNIpi2nk4bcxYAI8Wjviz1KFor4=; b=ZPJNNmG2CfyinfqrhsHlV+g/2spcGsRR6OA3gQWYXOOaD6Gsxx/0ZTZ/2WSEOwyYxr EDCpJh40XMtG2OTdgXJL02/X5omijLCV9JB2NHXHkDrLv9wNx5a9fXGjfKUy3F0lhTEe hmnXBdrKvxVeJ2M5hNGsU2bRRaZU/yeF/d2yhPBZ/vbo5qMU7Pf/Zeu4xzQd/tILMGUf 9wVa7xUimRQsMhs8I2ooWhyIiW91jtGl8d73AU5DZCPbAW2aJV7S8knDGzccvSCFIAGK XYYnZNcK+zvSZs4S+oTEJp9GvLNjfNv3+EpEB1BBZw+e91dYFNlfBeXNg4N+ATQRyNH9 j2NQ== 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=XAyFJiVGXrC/KZsleNIpi2nk4bcxYAI8Wjviz1KFor4=; b=jBcH3Pj1pGgaLIAKvl4mk8TxyatqgNmBCOOjAJNLRGw2bSZxBVkb+xaS54Ia0BZpmH W8H8+BRVF2uOID1eXwkEiFbDiGkemXw8gW4WQP6j0lPV64wwkPE4RgybNVh3NNAzd6m3 mprMVYvuYPfo0EQmNMO+5z2vrPzs8FluWZbeCeN9UY36PM4DwqXQrpjLSV9hilI+4JzG vPz30Ny749RdHWjekVbV8Q0eIaAGu1AitPgW3URagXBhKsD/pi8xw/slaj3sJL3p9P6T JkHB8gTCovPntneSpjuhetwqNPAlLEvv/6ZkqH3U6+F/ByMYzkzAQgQ49uTnB0P6RJyk rl1A== X-Gm-Message-State: ACrzQf27mG4zGl099Mn/fOmP5UaBquPXeJAncpAtp1jHeIpWMtogy4xe jj97b5PCKG97AkfBfqC3TbMWm8DsMLh8j1sN X-Received: by 2002:a17:903:1c6:b0:185:47ce:f4f0 with SMTP id e6-20020a17090301c600b0018547cef4f0mr33699248plh.132.1666611442110; Mon, 24 Oct 2022 04:37:22 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 04:37:21 -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 12/22] platform/x86: msi-wmi: Use acpi_video_get_backlight_types() Date: Mon, 24 Oct 2022 20:35:03 +0900 Message-Id: <20221024113513.5205-13-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/msi-wmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/msi-wmi.c b/drivers/platform/x86/msi-wmi.c index fd318cdfe313..3a74f0135fae 100644 --- a/drivers/platform/x86/msi-wmi.c +++ b/drivers/platform/x86/msi-wmi.c @@ -309,7 +309,7 @@ static int __init msi_wmi_init(void) } if (wmi_has_guid(MSIWMI_BIOS_GUID) && - acpi_video_get_backlight_type() == acpi_backlight_vendor) { + (acpi_video_get_backlight_types() & ACPI_BACKLIGHT_VENDOR)) { err = msi_wmi_backlight_setup(); if (err) { pr_err("Unable to setup backlight device\n"); -- 2.37.3