Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6732467rwi; Mon, 24 Oct 2022 05:33:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Cx/rWsEbhGUcTTUacyu5FIFUwzH2dCjp98R0d71WuDBiL5124+lLapDFSZimePBA0eIhc X-Received: by 2002:a05:6402:51d0:b0:45d:5ba4:c3d2 with SMTP id r16-20020a05640251d000b0045d5ba4c3d2mr30599501edd.132.1666614795285; Mon, 24 Oct 2022 05:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666614795; cv=none; d=google.com; s=arc-20160816; b=Zj4PK1nCHCTrHzsfesZZx00o1uFolnc3SJItgnId5jvnzKsN/NT63Unrgr1ZJWO/9W 2m/c9RyEa+YQBpp2uBcxioCHpuRCmOs1AxHXIhZS4n04BHvZXaON23PEMSIsVG9pm2CB OH7bzNdwYom5h+Da6D1++bQdXi2u5oSoJjtQF+7v0xBXXHtnya0w5Js5PrBKFQvOAnDO tSMefuWnLH4UG8h1UH1LpNXvVYHNbuxgi31+/0BJiqGP3pIsRJFduRY7ybdznGifRAkj ANrLTQXagW268plZZDhugPZfsEtd/J+PL29XRQzMpwe8Thy7PRVFowRdq+IQgbaVTQFu u4pA== 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=H9DD2Qn9ukDVbti7MaHb2ytvRgr63Gh+pODc8Oxcvp0=; b=gxYpZx03qBflAKiMHYCCKLMp8o5x791VjX9yOkJezE8rb5KhdR7iWJw+MqkCA+YhEP 06mpDaEdiZbDxJBE9iCbHVWxqpOPsPZH6FW3hx0VRE4hPixLvsYl2qBv1G7s0wR8xbBK L0HzhsSwD1euP98CMCrsPvVs8Npj2zGarFbch5ts5Snmh7vnyhDp7W5l1ykzqFMBlSy8 498Ynx6JcOhewmb2gQXTuYAerz7XQ/nVMRHuaxmZckNbSgSntYKoShwR7FA/9XkWYxH8 LDDaIvaZq5+5OenIJYeSNIQmvXtagGsGrFWWfExX0QGixieC95T6uxoOYrVr54fESD3T ul3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=mRQRZRI1; 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 n14-20020aa7c78e000000b00458ee128628si23638722eds.470.2022.10.24.05.32.50; Mon, 24 Oct 2022 05:33: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=mRQRZRI1; 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 S231425AbiJXLm1 (ORCPT + 99 others); Mon, 24 Oct 2022 07:42:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231305AbiJXLls (ORCPT ); Mon, 24 Oct 2022 07:41:48 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FF541275F for ; Mon, 24 Oct 2022 04:39:37 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id l6so4342248pjj.0 for ; Mon, 24 Oct 2022 04:39:37 -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=H9DD2Qn9ukDVbti7MaHb2ytvRgr63Gh+pODc8Oxcvp0=; b=mRQRZRI1N0fXR6ZhdjhBkiy9z0C8EnLK6gYwGYjqDkMwRaxlGNaP5gg/S/OvakJsTG j3MIV/2byA9qIHOxO3TCYFuxurjFmMwHfitpAimtA/68MM/VooXLqLsYsaKwrvgYMTyB 6Z4pVEOBs5IqlX0BIZsa0XK+RYo2qG4L7wS6XkghOIRzy97bYyCuS6T2RVuWBkoNAZsp 5OAXJzzDB82KI6oAxhG3ADEUNMHcMWzihVTgmK2hw0ruNAkoMfJvZ4SJ61OJTiGkE4ET XCl94Jv3FdldMl8SzpJhvBf/CL22EaB8WxpQl53oozj1okCtaLCSvY5Rm5InOnDmci1D XpzQ== 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=H9DD2Qn9ukDVbti7MaHb2ytvRgr63Gh+pODc8Oxcvp0=; b=vgMBdl0SsQAYFKszLWupSaeJwtN7udQdyfCrAjJZ/UwpDN1ftUUgPDAyjFLP2oTH6n 2qAoLMLeTORGo4SjS31+fWK1YaDiyHtt3q6W/pfq7Kjvx+EuPyD9tPdq6ote1eQnZMfr PgHS34vNM+xYYC4W1vkp3sLkjolocOJeGEAdgEagE4fDs32vVZhLH+TSPTV0NHBnbCQ0 faYMsR+MSgbng3ANq/oR8x0ze2nhUnKiPrYOvCdsuuXoJilybO0Mk1Ka3h7dHoOaazqe 3mBPxcvdHEfedKhpUEaZDRCfKt4oQv/ppn0PqGL5GnpvLb14WQ4l03leilq9V+HRWHjl qUlQ== X-Gm-Message-State: ACrzQf0KxXMGPoHCHTGbDmDM7PUqqZ6BGLfH46LhF2Ooju4kDZsB3Aaz mkMugkV4KyuYHYqcpiOlkkvsZg== X-Received: by 2002:a17:90b:3912:b0:20d:4151:1b65 with SMTP id ob18-20020a17090b391200b0020d41511b65mr74871319pjb.233.1666611458874; Mon, 24 Oct 2022 04:37:38 -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.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 04:37:38 -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 14/22] platform/x86: panasonic-laptop: Use acpi_video_get_backlight_types() Date: Mon, 24 Oct 2022 20:35:05 +0900 Message-Id: <20221024113513.5205-15-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/panasonic-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/panasonic-laptop.c b/drivers/platform/x86/panasonic-laptop.c index ad3083f9946d..eaf9469fabb3 100644 --- a/drivers/platform/x86/panasonic-laptop.c +++ b/drivers/platform/x86/panasonic-laptop.c @@ -999,7 +999,7 @@ static int acpi_pcc_hotkey_add(struct acpi_device *device) goto out_input; } - if (acpi_video_get_backlight_type() == acpi_backlight_vendor) { + if ((acpi_video_get_backlight_types() & ACPI_BACKLIGHT_VENDOR)) { /* initialize backlight */ memset(&props, 0, sizeof(struct backlight_properties)); props.type = BACKLIGHT_PLATFORM; -- 2.37.3