Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6736744rwi; Mon, 24 Oct 2022 05:36:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Gpx2Rl88TKpMARAXVAel/wICpnW3QNXdeAFHLhTYih0PcEOxCEhpnLzfgYjp701LMr2ra X-Received: by 2002:a63:6b09:0:b0:453:b1f8:bb3b with SMTP id g9-20020a636b09000000b00453b1f8bb3bmr29090872pgc.36.1666614965292; Mon, 24 Oct 2022 05:36:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666614965; cv=none; d=google.com; s=arc-20160816; b=JJnh+jtGWRFnTtd94d3A3heMVnlxDsR17dRoVVxAgognI8scD2xP4WpA3xGjJ87+QH ycQ4UIdJEXVWXGFeZPH7MKBeDSIhRLU633OsMNdCVPm3lEWLrepkFJeUT2Wcu3lSZZlI G8j+SbgL8FUsITmOvWy/PJKpYbMwCpxascZAI6UF93uLAC22RArslVM9QCT0bC+X2o3c Ag51pNNRJj7oiaUY2YtCcUmiy5XZmAlBhgqGJHD6R8s8YoyUWzKtiXy3WQKIV/XVrqJM UZTYOnU4zyPT1rwlapj1nn2jryOTJ67D1CU0y1qCSU0eWsRLyXQCzkw9lD44AA/p2TgN BXug== 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=jd6ACh5yshC3v+wpibDWDf3qgLlWAznCMtTQxn1zcTM=; b=CraRUnu5hJlzPPL1q6FaCCA8pohv3/lCUTTRcb1Mgxbqvu93fYI60xRydtRSGB9qs2 N4uQYXyww0eoCNMOn1kttlhXVtW6V8ZOAE1koV5FeVMc53TM4W5mPsJ3aYTmI37GRQ9W PeROteHrxUObVoykKopLqe5pdMdf8GGgkT8jSMkuqs+UGooxPcDdvFJq9x5auKsKZ5DN 0cTNaW1qcN8NlWWMOqMGZrmF/8mBcVaDQGbBBoquzOBpADb40rMf6qjOw614aET1KIAe Tp/oP002aQY4j4F1APngbuSOm7bpiTrluLH86vRcpluy5NKnC46Wf8rUiR/R+nxj5eIh SFgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@daynix-com.20210112.gappssmtp.com header.s=20210112 header.b=BWB1bsRo; 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 u7-20020a170902e80700b001786d7bc2dfsi35556938plg.400.2022.10.24.05.35.53; Mon, 24 Oct 2022 05:36:05 -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=BWB1bsRo; 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 S231251AbiJXLi4 (ORCPT + 99 others); Mon, 24 Oct 2022 07:38:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231137AbiJXLiC (ORCPT ); Mon, 24 Oct 2022 07:38:02 -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 B6B00631D5 for ; Mon, 24 Oct 2022 04:37:38 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id v13-20020a17090a6b0d00b0021332e5388fso9688pjj.1 for ; Mon, 24 Oct 2022 04:37:38 -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=jd6ACh5yshC3v+wpibDWDf3qgLlWAznCMtTQxn1zcTM=; b=BWB1bsRo1D1/5aG2HUlQshwnot5GiQEKVcgQhO+OxWk4Yv6RJGjGc0+BnbVcAU1ilB NhLxiTmmJgpEWvIeGzC5nj6mZ2YWuafNwN+o0OYaPM29MksvUZTfQAH1/K+UrZCFM6bR i7w9/In5jUCFaBvu+D1VTFv7mFYSrjvbVqaokCOIPR/VUAMFVxjnDdpJCpz7bMR/BSkg Jq+u8O9YrnPI/nP0nolD9ycK218e8OEhDyBgyhXa6WYV51n2uaBY0GhjjlonI341V0zm ZR6a6kMTVC2I54CmN/XhCqU+xMvNbG8LWMhVeF721NMtiIvmVm8HCmwl7f0mofuKqBvv T6qA== 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=jd6ACh5yshC3v+wpibDWDf3qgLlWAznCMtTQxn1zcTM=; b=66FY/ESGkuXbs6rvbhyJpi9aTSGAGoy5O4lBFSrI5PZNn0QAfvZZxPUrWkYZuBtcVz GJ/xmTm7rm8cvN8IdhPrDTwEw6xwU7ZmSQH4VDzhOkNPo5X6UdAUiv/lrzP1qwZOaZUr fVfk2Kgc/WD1QnSnV27AwlxoRVUD9KBS7xkaRye7cv/WJuZraTm56hbtyscEDYv3gFoT eYu7TBCE83a7H8xK11uEALbiw3x7j6gXtiMDAEYhgnB6vBpaotC0bIw+wBruQ3k08Ti0 7CEnwKcz3vh7XOKTb4C6QX0V9wD4/4ulGmAb0M/2pJcnaTOzuhl6OBLWK0YoSr3BRF/u gWMQ== X-Gm-Message-State: ACrzQf1u8kWf6n5TbYwxd9cWpM2BwfvlA+Ij2/dubRY3445HoayvBNYc imUKijwH/S+3eKftefvlXkBJxg== X-Received: by 2002:a17:902:da90:b0:185:5537:f388 with SMTP id j16-20020a170902da9000b001855537f388mr34408779plx.113.1666611366225; Mon, 24 Oct 2022 04:36:06 -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.35.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 04:36:05 -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 03/22] LoongArch: Use acpi_video_get_backlight_types() Date: Mon, 24 Oct 2022 20:34:54 +0900 Message-Id: <20221024113513.5205-4-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/loongarch/loongson-laptop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/loongarch/loongson-laptop.c b/drivers/platform/loongarch/loongson-laptop.c index f0166ad5d2c2..3b54b4cefedb 100644 --- a/drivers/platform/loongarch/loongson-laptop.c +++ b/drivers/platform/loongarch/loongson-laptop.c @@ -454,9 +454,9 @@ static int __init event_init(struct generic_sub_driver *sub_driver) /* * This hotkey driver handle backlight event when - * acpi_video_get_backlight_type() gets acpi_backlight_vendor + * acpi_video_get_backlight_types() gets ACPI_BACKLIGHT_VENDOR */ - if (acpi_video_get_backlight_type() == acpi_backlight_vendor) + if ((acpi_video_get_backlight_types() & ACPI_BACKLIGHT_VENDOR)) hotkey_backlight_set(true); else hotkey_backlight_set(false); -- 2.37.3