Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7664089rwi; Mon, 24 Oct 2022 18:32:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6e8EeSqh6dHurs0eL7hJaQjl0XsILOUm9dVNPAteN2sol/Nn1UhVsSkN+KsWx9sxvoj0F7 X-Received: by 2002:a17:902:f786:b0:186:7a6b:217c with SMTP id q6-20020a170902f78600b001867a6b217cmr19430828pln.55.1666661523297; Mon, 24 Oct 2022 18:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666661523; cv=none; d=google.com; s=arc-20160816; b=oQddjUnv+vBWzLagvALbqymsqtDm6IugJUO8Om8T/HdMhiA2yf4zV83/e2m8L0EYUm 3ai56vjHAYJagzRhaDRCU41CDxSlNSXKOYkVEX8T3WdabSfvPJRTyhqxUG7ov3SVYBih 1GPo0S7m4sISjNIh5GFD/iU/qKdnbbQ+m3SR89i5uNer4xd9HZFaj7prFp3U4dRY8Yyp Bl8j3CEQfujH29i3agSdxw+NQtrBNWORpJ/qCUfj8LPIh6T6QzU95wx0DDMmvPNyaQPN jQGN69ELq4nsG6vZAa5VSuKfbmo5oyUvCk3T9dOBa6tSVJgUll+N0tGgfVXRG+u6qVTB +lCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=fFvbZvVn2pVE5MHNxL0fN1gMBO1s+LqKoAWkrEK1x9Q=; b=YyGOM3CyrrVjcp/v38rCiIAK96Ce4NuqNdKIdswpjlTEQsSXE3fsjoKRxQA2E4BDB+ /fMokXn0ha4xYY95fE2xFRQRJVmny3bBrrIV5fP8s71yo+qccQNmn0I46kiGk4u2xRde rAHGPdRYiin1JjxQ9T0qME/IvfQBl8Scg0rqF9rRvuc0Gl+nw6RMdGKjV/9oOW9LOuso GeZfIPygve4QeZ40sAaxOPsIDoCtdJJmMECJWNnnQkiVmNP1YOKvLV6ytpEHV04WI4Sx BVQIy4IAK8dhTjvxpQW7S1jzJjbTKsuqECzFiuLIVsC79Ri3dkPpehvUx++ctQi8ZiTh jGbQ== ARC-Authentication-Results: i=1; mx.google.com; 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 iw11-20020a170903044b00b0017f792fe3edsi967055plb.266.2022.10.24.18.31.51; Mon, 24 Oct 2022 18:32:03 -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; 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 S229681AbiJYBDC (ORCPT + 99 others); Mon, 24 Oct 2022 21:03:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231144AbiJYBC3 (ORCPT ); Mon, 24 Oct 2022 21:02:29 -0400 X-Greylist: delayed 1503 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 24 Oct 2022 16:58:37 PDT Received: from server.atrad.com.au (server.atrad.com.au [150.101.241.2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C59917252B; Mon, 24 Oct 2022 16:58:31 -0700 (PDT) Received: from marvin.atrad.com.au (marvin.atrad.com.au [192.168.0.2]) by server.atrad.com.au (8.17.1/8.17.1) with ESMTPS id 29OMOeVe015083 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Tue, 25 Oct 2022 08:54:42 +1030 Date: Tue, 25 Oct 2022 08:54:40 +1030 From: Jonathan Woithe To: 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 , Pali =?iso-8859-1?Q?Roh=E1r?= , 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 Subject: Re: [PATCH 09/22] platform/x86: fujitsu-laptop: Use acpi_video_get_backlight_types() Message-ID: References: <20221024113513.5205-1-akihiko.odaki@daynix.com> <20221024113513.5205-10-akihiko.odaki@daynix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221024113513.5205-10-akihiko.odaki@daynix.com> X-MIMEDefang-action: accept X-Scanned-By: MIMEDefang 2.86 on 192.168.0.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 24, 2022 at 08:35:00PM +0900, Akihiko Odaki wrote: > acpi_video_get_backlight_type() is now deprecated. The practical impact of this patch series on fujitsu-laptop is obviously very minor assuming the new acpi_video_get_backlight_types() function functions as advertised. Accordingly, as maintainer of fujitsu-laptop I will defer to the opinions of others who maintain the lower level infrastructure which is more substantially affected by the bulk of the changes in this series. I note that Hans has naked the series and I'm happy to go along with that. Regards jonathan > Signed-off-by: Akihiko Odaki > --- > drivers/platform/x86/fujitsu-laptop.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/platform/x86/fujitsu-laptop.c b/drivers/platform/x86/fujitsu-laptop.c > index b543d117b12c..e820de39cb68 100644 > --- a/drivers/platform/x86/fujitsu-laptop.c > +++ b/drivers/platform/x86/fujitsu-laptop.c > @@ -387,7 +387,7 @@ static int acpi_fujitsu_bl_add(struct acpi_device *device) > struct fujitsu_bl *priv; > int ret; > > - if (acpi_video_get_backlight_type() != acpi_backlight_vendor) > + if (!(acpi_video_get_backlight_types() & ACPI_BACKLIGHT_VENDOR)) > return -ENODEV; > > priv = devm_kzalloc(&device->dev, sizeof(*priv), GFP_KERNEL); > @@ -819,7 +819,7 @@ static int acpi_fujitsu_laptop_add(struct acpi_device *device) > > /* Sync backlight power status */ > if (fujitsu_bl && fujitsu_bl->bl_device && > - acpi_video_get_backlight_type() == acpi_backlight_vendor) { > + (acpi_video_get_backlight_types() & ACPI_BACKLIGHT_VENDOR)) { > if (call_fext_func(fext, FUNC_BACKLIGHT, 0x2, > BACKLIGHT_PARAM_POWER, 0x0) == BACKLIGHT_OFF) > fujitsu_bl->bl_device->props.power = FB_BLANK_POWERDOWN; > -- > 2.37.3