Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6798125rwi; Mon, 24 Oct 2022 06:18:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM58DEn2rDIMGeIUv8wNBm6CEN5KcPT5EDRwaCKHZG8Nq3DJa/gDSz+AZMUlAcXoLaP1wU9w X-Received: by 2002:a17:906:3019:b0:7a7:6425:7d1e with SMTP id 25-20020a170906301900b007a764257d1emr4670420ejz.663.1666617512085; Mon, 24 Oct 2022 06:18:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666617512; cv=none; d=google.com; s=arc-20160816; b=mx0CPfLh6ks1OqLhXyIPZJ4P5AqX3fZvTI5JiWhIrc2woMD/DURBjGbu2YvHs0EnHu WzuzXj5x2R1/MwcLTIzHEdyP5GYbPpC9dPNxpG5nsCCWhJ19j2DBv8uya8zfL/EwEAro 08CAi2HL4gmQ/NJGJpDJk+wrQ4coI9YlQeQDHVjsGIBjMOk0ctLiTG1rDMIgQq/Stezz ixC5ecpM/fPnNKI5hm1vyHL8RGOYkrI6fUVN6kbQMIPRLdX3xV5fvr9Zw8j624VY6RpJ Oqq44lgzCFXGen1Cx/rh14d9stCvfc9sl/8TkxvAB6Y2TocLvntyPyImVvf/y5TvbVU3 SXlg== 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=ghtJtVJhPw81MXq6/J6quq2LuUHiKWw8lzS+pFTBsP0=; b=CAeNeAy1EMEZBKF8/KnSEvz9B6UXqkLTC/V+5UJH4TepxiKQyuySRbAaJZX7Odo4c0 9OAQ811fLebPY0ypApuaRCVzwLDDsVyNIWn4POaucPyQ7mtmpeGts5BJCLi0jJj/EFEB xGsDBw4H4VaX/eUUA37u4bsY9P6bCZwnNL7KuTLeHss3Yy5oBgra1/07ncLxqLgeHmF5 ZUWr3bUEj+BLJRJ0YBBC4JjzN6zmS4TTmCXmJTWPcDF2KY0io6wQf5GrrHQ9asrdzyDK 75l2raQnabo3plT8dp5wATQbjPnD8zG3zn8EtuSXiSGnyVCeUEdCRB2c4s9D3XRgZyxk P4SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b="cZrJzXH/"; 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 sb10-20020a1709076d8a00b0078e1e216396si27040926ejc.66.2022.10.24.06.18.06; Mon, 24 Oct 2022 06:18:32 -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="cZrJzXH/"; 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 S234521AbiJXMww (ORCPT + 99 others); Mon, 24 Oct 2022 08:52:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234259AbiJXMsH (ORCPT ); Mon, 24 Oct 2022 08:48:07 -0400 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC29D15719 for ; Mon, 24 Oct 2022 05:12:32 -0700 (PDT) Received: by mail-pf1-f178.google.com with SMTP id 192so1626253pfx.5 for ; Mon, 24 Oct 2022 05:12:32 -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=ghtJtVJhPw81MXq6/J6quq2LuUHiKWw8lzS+pFTBsP0=; b=cZrJzXH//QTytM0WW2x60eVTJWmr4XlL39TbHpKK3q3WQCrSwZnjVPRWyiABmgouTe tcWaVYaRKc8hu79d1xDnlFcNITHqD8aagxIfdW/j33EuRzv9/LyBezR8gcIDeuDjMBdi Ipdx3WUUwYagpuujWId9VshSvfmg5KdxiBBTFEGB4woUWAXr+bNyz5W7lNqKncoZTj5V OtqnOJcGCmy/ESZHdgjapJ1vmW0D4ruK7a2seAn0eeRS8/38sQjcPxnlad2eAV61+hmK GkeCBWxM+dUrzuzssuopdvmaQwwmpmxNgwGhyMJjD/yNfawG/7R+9RDafwqQFOoJ0z9Q ANrw== 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=ghtJtVJhPw81MXq6/J6quq2LuUHiKWw8lzS+pFTBsP0=; b=W0oUd7aXp344ctaQbs8b2LR8RwQ9WIMsSo+lUKbWdxZKUAlWmDs5/4k+tWTDj+pxXn f16vVvAIC3i3FUfbwyJBZ+gH3EUyqhwq+oqvXGr9Z+mrDvmiVK0gBNWnAmcqPJJcgtmz SxlIOL/sY8haFZwGUL68zabaKar6HO325Tt/Ubsk5WCX8hEJDluAnSDb+Y5VZ0/0t3jK c0MNK4wKuohUalgPsKWeTVDEXmM6w8Ol8IVAtZcg8j7Bq1+wAYdFH5iaXLLI0ezFubaj WKpLdN5hVIdCb4UWYIuDWrOn+ptgHScBlE4AfbEmwX4opoOyu4CZTDcc+YkmNl8tQJG7 n2Og== X-Gm-Message-State: ACrzQf3fVmue9i4OKeTrmnKBDGkLtwsBGDZG4athu5BDxYCoJ/GZuXj1 0rjL11JuhM2M5RtT+Mszu0ICk9+9d/hqDWmN X-Received: by 2002:a63:dc54:0:b0:44c:ce26:fa35 with SMTP id f20-20020a63dc54000000b0044cce26fa35mr28698734pgj.374.1666611492363; Mon, 24 Oct 2022 04:38:12 -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.38.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 04:38:11 -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 18/22] platform/x86: toshiba_acpi: Use acpi_video_get_backlight_types() Date: Mon, 24 Oct 2022 20:35:09 +0900 Message-Id: <20221024113513.5205-19-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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, 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/toshiba_acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index 160abd3b3af8..3d747a901ad8 100644 --- a/drivers/platform/x86/toshiba_acpi.c +++ b/drivers/platform/x86/toshiba_acpi.c @@ -2978,7 +2978,7 @@ static int toshiba_acpi_setup_backlight(struct toshiba_acpi_dev *dev) return 0; } - if (acpi_video_get_backlight_type() != acpi_backlight_vendor) + if (!(acpi_video_get_backlight_types() & ACPI_BACKLIGHT_VENDOR)) return 0; memset(&props, 0, sizeof(props)); -- 2.37.3