Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6691909rwi; Mon, 24 Oct 2022 05:03:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM456hmU6mCC6z+dJoEhAFWKzC3XRUhld7rdFYy+DWdZJtwRdXcwPoZTTBL3n7ZgDiX8ECsN X-Received: by 2002:a17:90b:384f:b0:20d:4761:3394 with SMTP id nl15-20020a17090b384f00b0020d47613394mr38710502pjb.144.1666613011781; Mon, 24 Oct 2022 05:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666613011; cv=none; d=google.com; s=arc-20160816; b=HQCaS9rdZfV+ZMtSlU6v6qmXqa3N9kPTaP8lzUdIlJNhSxDhM+kPQYhRFiHicyGhC+ 1+H9AHiE4O73wcGmW56ROShOU9dc7Xky42Ez2bh2PTjH17Q8jECkrCB6r2G2JJbd1NAX V8/j6zichUa8hUk3dyr1vxd8kr6UNkl4zB7N0Y/tAG7/2SoJJ2+Ywz+VP0Pp9RE9Bif0 nCwwUm2LimzuRXoKwxNe5UtqyDFCmalNQT4Awg+kzR/0aGRH4v/k4zEWY5nbcSJPZOFV mxxHM3tU+pZmnA3oya8oGJIPSeqewKWgq77mHK8VMfD2ewdsSYAh57hvUHRHoM+Mbbsv Gk1Q== 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=YFFtfp5Yc7gM2NHS+gJ21jjQnawzT1tRkxQzo/jBQzs=; b=JFlqouEZA4ctrVyFVXiFSCU2zdZW/kpAJY2KIgiTr6o/zA66pO2NyJGb1Wt5EpqsEp IQ7tBpMkHUcktsw85KvCCbf0sfhW8tWKmfb9a2CmCRjf+L9kYVAd3H7FALjGDHKj0Ua3 S0y915EJTTn80TuD3vAezMJe4tAp/Jk1s0Wy3Ik+UmS0iIk3YizyuvqjaS9yuue6kCuz aoL3brUS8R/TK4E6eSq4MdhYQVfVfNAhrTr9aBwp0skHy1YStdvJacHTDsrMZ5vnQbOd w0rOA+t4tFlyY2unLletpoopb3hITefya+YPSSj/xdjkRy7n0EqMdBURkPTqigAgHF/2 rgRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=PgRxRL0V; 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 g4-20020a63e604000000b0046ebb90e5bdsi10902222pgh.337.2022.10.24.05.03.13; Mon, 24 Oct 2022 05:03:31 -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=PgRxRL0V; 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 S231211AbiJXLk6 (ORCPT + 99 others); Mon, 24 Oct 2022 07:40:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231206AbiJXLig (ORCPT ); Mon, 24 Oct 2022 07:38:36 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08C1F6C74C for ; Mon, 24 Oct 2022 04:38:05 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id p6so8196696plr.7 for ; Mon, 24 Oct 2022 04:38:05 -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=YFFtfp5Yc7gM2NHS+gJ21jjQnawzT1tRkxQzo/jBQzs=; b=PgRxRL0VweaBpB4MPzFwmQEoLPmtBSUyoflWHPBA/i2qwPwwuqmuLCa/wFO3m2WOgm CG5asatEvhtKxzWCslE5iuXyE9qykeCF0sAXWDQWCpNnz1SKFD09I/9ECN3oqaq/n/qH 8rI5q6sFwwrbf+qrqO6sphSgXh8gDNDUjMeXekyPZD3F/TNfhF9NLgFtp4S/EV7wFVYr HIvJzo/gYypH0KtX5FbvkZtyhStclUobYg5s5+qLL1fUloXqGfaHi5da3VFSy44yWKIj FIzxJZjW4aIDCrHCB+/3DHZ36YkLWnsHC5PSQR+boNXax+UF0elBwxF4lI1dewR5AYRU r3Ew== 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=YFFtfp5Yc7gM2NHS+gJ21jjQnawzT1tRkxQzo/jBQzs=; b=hTl/1PcunjimjYpOn1Wd8OyhMlLc7VxGJaTNzz4eRBzER176Ez5TZL+c8oX6gHspnW sRdOc5YmPV1QEhJwr8rxU8A1/9K2UNWzFY84N1rba1mYuIErADP/d978zVNoo/MMn8Qu XXLIHFIwtqNJRoJvl1KeVM9dhVIv7uNdHNtich9TrzqVvFthsuFwR08EjPYGAF1g6fZY KEHuDZBzAXIs/Ful5KJqzh4hN3HM+6KbsmbFnDrdvLKBJsFX3k65A+DB6JWreY3CRgUU Cvc15j/sO2u5R9grO7a+ZSpcGFwMT9+P3eO6XL1G1tFGvuDZf2R5SLmi97f8eKWtD8bp 8m/g== X-Gm-Message-State: ACrzQf1m9e78jS/sqI2g4nxGb4qMNsadpzIm3g/o2nkCaXFKmUZs7iaa y8AYGF5m96vboaOX9vc/BpKqEg== X-Received: by 2002:a17:903:11c3:b0:178:aec1:189c with SMTP id q3-20020a17090311c300b00178aec1189cmr32705192plh.136.1666611425291; Mon, 24 Oct 2022 04:37:05 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 04:37:04 -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 10/22] platform/x86: ideapad-laptop: Use acpi_video_get_backlight_types() Date: Mon, 24 Oct 2022 20:35:01 +0900 Message-Id: <20221024113513.5205-11-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/ideapad-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index abd0c81d62c4..befd5dc24ed6 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c @@ -1633,7 +1633,7 @@ static int ideapad_acpi_add(struct platform_device *pdev) dev_info(&pdev->dev, "DYTC interface is not available\n"); } - if (acpi_video_get_backlight_type() == acpi_backlight_vendor) { + if ((acpi_video_get_backlight_types() & ACPI_BACKLIGHT_VENDOR)) { err = ideapad_backlight_init(priv); if (err && err != -ENODEV) goto backlight_failed; -- 2.37.3