Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6737250rwi; Mon, 24 Oct 2022 05:36:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7SmwV46FHxlxn31PeAp/12l1BtNb0KPxp3ezWBQ7amS9kaW06qH11iKKQG+jzgTMNoIWM7 X-Received: by 2002:a05:6a00:1ace:b0:565:f52a:d998 with SMTP id f14-20020a056a001ace00b00565f52ad998mr33304226pfv.25.1666614986103; Mon, 24 Oct 2022 05:36:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666614986; cv=none; d=google.com; s=arc-20160816; b=J3fE7bWrHgV8dUW5mFeGbfXdu3OfQzjtfUR64zqTP76wdOgcgUghU2IBx0U72qv2mR cljn5vPjg9t1yn86X0pQZg+kLSovR/rUW9Gq62DQasT+JIoLbT42WUifOPU/DGttIxup 31glbQK+rb9j0vtVAUzMHG/4UPjAwIxez5qfrJ1GnHivMFJdbwFbGvJBxchrn9gnBpMZ Nt9QWGxIA4aJ45Mr8d+kOkOq2MOBiJQmxfyF4kgVLSXTUfj4khJmihQI7F4EDgShUxSX 7RSKMtY6AyUCk6t6fDli5QCei7RqOayPnbTTROFYP21fdvIHIpiD2AIXfvoM2zMVq5HL RPgw== 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=UAzZQL5seIJutOYUjJgcTz5SIcJNiVaULVY/vxMxJ7M=; b=o75WfcLclfvEqy7/XJFM+0l9eY3GiCds16Pq2UU0BeN6iUhInK1ozOE9ftJ1IeJ/f0 CNTLyEgJBBF8yBWKmBDqtEFPfX0LY/AdyrnTSaMpOUBIUwHagA1bvL9991umk7bVDqiV bW38onxjBQbQ95KYFT+Lm9H9thM4Z6BACQdz1ZTo/3IGHW7GMWkAVg9bf7x3Fkko413Y WzxQ6hUjtGXU+ramLTh3zQVa7DtqdogPIoDe81CMGiaTKes5RCzKzx9sGJ7dKJrUKgcB 6e1pqMPkHX47nyAorNmMtUwwhEkHTg23/UpwPxcWxovHmmdjX9yXQl2I3UIu+zJEQvn4 TJLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b="bWAkfym/"; 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 a3-20020a1709027d8300b0017f7dc60325si20051993plm.555.2022.10.24.05.36.14; Mon, 24 Oct 2022 05:36:26 -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="bWAkfym/"; 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 S231435AbiJXLmc (ORCPT + 99 others); Mon, 24 Oct 2022 07:42:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231346AbiJXLlx (ORCPT ); Mon, 24 Oct 2022 07:41:53 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D22812D26 for ; Mon, 24 Oct 2022 04:39:38 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id u8-20020a17090a5e4800b002106dcdd4a0so12711928pji.1 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=UAzZQL5seIJutOYUjJgcTz5SIcJNiVaULVY/vxMxJ7M=; b=bWAkfym/IuAYQQDsk1OCfdE9w9yWPE3crZCufatlU3uyFhSD2FLPPyi4EZX0XKPNNN TsT1Mn93d8yM/JN1r6KstPaSr0v2lhHNLAttfYUvsrYDknwH7khxwfUrEhoUBDF6QNvT 2AoTMSr1l1S7qOR5wF4oY1dCDKpWYBJ8RPjoWCYtuPhEghyQHHePilHd/NADV54vZIGq 6rdvlz9HJM3z9wu+pJUiXEGORc6v7pwvQYHXmPP9HS48eXejuQAX3z/RDPWeO6o44bSX c9msf1NsRp6QE7dLwlbW0UvYtPhluL4+JoPCees4u24dLHSpN6Uh4AbxJOiXkAJfcDlq GsGQ== 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=UAzZQL5seIJutOYUjJgcTz5SIcJNiVaULVY/vxMxJ7M=; b=bG2Y75gK4BmoRnJMMfN3FY2XRLB9TEYU8yzg5D1VeetTUK1SAgpIpTISkf2oGBi6sD cu/tcqigGEyPkb7DmN1DSz27LZ2yMMGk034ip9e5SewWbLCtyZMiuRFFUdcB20QLuKLj nruVrVKPI0IBWb38bE9cKnI3clmdDQn8yPXiNKoWo+xAiSuCT0pDEYAiSstHm57cQl5A YekiUZbr7DJItH8a4J/tbHBES8y/A0/e2lRN/joYPeTWlQULJ1SIHxYoZiIQ62PdaoL+ 486j1UwQG9qYMaNLa7wNqNRclYPL125zk/b4FYRPjEq2eG4YjzudVA+QZUqCkj0e8erh dj1A== X-Gm-Message-State: ACrzQf26/WoyFwaVtqz0JT8BLL21MO6CjcSb6gx0Qfs4tbm8i1N1n0ac plhiTUN0E0UBiKitFhwVXUAwNg== X-Received: by 2002:a17:90b:4b8f:b0:213:95f:9515 with SMTP id lr15-20020a17090b4b8f00b00213095f9515mr6350162pjb.82.1666611500759; Mon, 24 Oct 2022 04:38:20 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 04:38:20 -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 19/22] platform/x86: dell-laptop: Use acpi_video_get_backlight_types() Date: Mon, 24 Oct 2022 20:35:10 +0900 Message-Id: <20221024113513.5205-20-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/dell/dell-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/dell/dell-laptop.c b/drivers/platform/x86/dell/dell-laptop.c index e92c3ad06d69..9cfffbe2bd95 100644 --- a/drivers/platform/x86/dell/dell-laptop.c +++ b/drivers/platform/x86/dell/dell-laptop.c @@ -2230,7 +2230,7 @@ static int __init dell_init(void) micmute_led_registered = true; } - if (acpi_video_get_backlight_type() != acpi_backlight_vendor) + if (!(acpi_video_get_backlight_types() & ACPI_BACKLIGHT_VENDOR)) return 0; token = dell_smbios_find_token(BRIGHTNESS_TOKEN); -- 2.37.3