Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6738287rwi; Mon, 24 Oct 2022 05:37:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6f59wadKmYIwvTQUEkNr9PMHqUEv6t1/Z6xnoOw9SwmEkLGd0AzlLbSTWnJ9XF3Mon/US6 X-Received: by 2002:a05:6a00:430c:b0:562:6897:7668 with SMTP id cb12-20020a056a00430c00b0056268977668mr33564317pfb.23.1666615030187; Mon, 24 Oct 2022 05:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666615030; cv=none; d=google.com; s=arc-20160816; b=jKQwJ0aM5wthC9s93htu0xxFQ9RP4gOpCG2aTDLr4OoDeSAUTi2Jq+twfwhydtVWPg 1TjAx+98sDZkU0g4pgtIW9PbsiqYNsicJZENMcoGFTtijpgiiH2lG488nXDQIrBL/dxp 1ugmqc0nOqtQEWOTwvE2gdX9JndDdq+GWWXj1/x2InuZV2JoQYEDyi5U6abPnPNqqVin CNt0Q21nXLCtE+sDGbinypXui2ftuaxWS0NXYbU3yDvqmJHsez4oddADDgVJPIuLeRP0 Xwc5SHXmnIRUG7Rum3q1i9NBQ1Z0r4SmiSTfiqNjveYlS5gdgcALIKJ1NbD+iXo7YzAn eNFw== 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=28wDlqMofB1pExK+J7NJqLJ5sSPJ8IDYDWuGoZcg4WU=; b=0nP8fIzKl6kjSbp464D6AKONJR7dfHBmXN6y1+yaTxeBe2vIp7DKVgOdvt0CTEcP8h oHAlKLLFApS+w0nJo1J76gFm5xSQmTXpWYlDw73Dj3SxlisCltM8JTUr6Ez7ZTSWqJwd fsujrG5GnLGQuAHotE3bf5N+eqlcemcpZ7dnVvBdBP7d7aOI2gKEJNT0EU8PNX1i4Ne+ bBlq2JOp+6t8upH8p6h4ltqKa6XWOwKaS17OeS9+PnuNHuUq5qXQaBKb8y15wLwEPXvy FJQVx6pBTZAjb6xvLKNWDk2IQl3FWzSgSBCdNPdTjvEgYuf6OMOxprpXKjqE0jbuTKR0 MFoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=zPrE3Z79; 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 d10-20020a170903230a00b00178431e112asi38736788plh.449.2022.10.24.05.36.57; Mon, 24 Oct 2022 05:37:10 -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=zPrE3Z79; 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 S231215AbiJXLjq (ORCPT + 99 others); Mon, 24 Oct 2022 07:39:46 -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 S231262AbiJXLi5 (ORCPT ); Mon, 24 Oct 2022 07:38:57 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14E9B6D85E for ; Mon, 24 Oct 2022 04:38:11 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id f193so8496686pgc.0 for ; Mon, 24 Oct 2022 04:38:11 -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=28wDlqMofB1pExK+J7NJqLJ5sSPJ8IDYDWuGoZcg4WU=; b=zPrE3Z79yDGzLtfx2QawETgF1lUMugvN0C6qQ0CWIaiD5/kUtQIJww0VDJMrkYc3N9 elYuVucHc32XKow2YGLm3Vr08Z5vsbFCWlv4vq7Nx1QXhYg0jtjzlw0H9CXWI7Ta2vol 6FUMEN9tnwiBaSCwpYfKwo7U/Mq0MJA9eOTbkI8+uvO7eXR9gmEds/Sy3ur7LFminYR1 NVY1BZW0FhIWVkiQMHh5J542GVxkeRWv1QNvckPM+a6g8eqefXzkOAt0+7UqdUmERKZa J+mLK9mmXa4DfceGk2cEkxou1QrTtBSQu+UKjsPm36wMjvQrtPcLMKbyQMEJWea/JWpP WvvA== 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=28wDlqMofB1pExK+J7NJqLJ5sSPJ8IDYDWuGoZcg4WU=; b=DaA5bTXRVdnpKTdZjo9OkjrbN0amLgroF2XW8kUXPEIQKxggTIPeGJNSmf6D9LJOXn ZD2iwsfdAI6/00xQA2dXVwMtRAdLZR14gFrg34WF4w8DDmuWelmmU+0TEb7uBYOTnhWX Vom3TSbYKeWhLr3NCc1VFP3TBZ12wg3Z9B/2Re/ct6Ig18ckkGfdihVBPEq4SmxuaQTr OpcoPMYPBErq+fiZyUjLV2fqPwUL6eXBBU8bxHT7NiTElLJQkRvnZqQJt+YT882X4O78 0cCNtI2liMjVEWGlykJfZWOxvQQZ4xtxFs+akxUF85Gaeg65pALunFD+beRCw0Q8YZY1 AFVA== X-Gm-Message-State: ACrzQf1rv7Nr2aL4yN0ZlQRptLeIVF39MQcO6Ko4RDPbbWp+/+zfllBz NJc2US5OKMjxcH2wQdgiebulhg== X-Received: by 2002:a63:5702:0:b0:44b:290:f24f with SMTP id l2-20020a635702000000b0044b0290f24fmr27871108pgb.558.1666611399944; Mon, 24 Oct 2022 04:36:39 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 04:36:39 -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 07/22] platform/x86: compal-laptop: Use acpi_video_get_backlight_types() Date: Mon, 24 Oct 2022 20:34:58 +0900 Message-Id: <20221024113513.5205-8-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/compal-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/compal-laptop.c b/drivers/platform/x86/compal-laptop.c index e10d2f64dfad..16ced03fa1b7 100644 --- a/drivers/platform/x86/compal-laptop.c +++ b/drivers/platform/x86/compal-laptop.c @@ -1043,7 +1043,7 @@ static int __init compal_init(void) return -ENODEV; } - if (acpi_video_get_backlight_type() == acpi_backlight_vendor) { + if ((acpi_video_get_backlight_types() & ACPI_BACKLIGHT_VENDOR)) { struct backlight_properties props; memset(&props, 0, sizeof(struct backlight_properties)); props.type = BACKLIGHT_PLATFORM; -- 2.37.3