Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp733592iog; Fri, 24 Jun 2022 12:51:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1spNMjVEULD0OyuW+yrGW75DxUfurRU0/kr7UKmZ2L6Tk6wOlobldD2sawbLH2yGrR5KC8o X-Received: by 2002:a17:90b:180b:b0:1ed:27d3:988f with SMTP id lw11-20020a17090b180b00b001ed27d3988fmr4870184pjb.170.1656100317289; Fri, 24 Jun 2022 12:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656100317; cv=none; d=google.com; s=arc-20160816; b=vQYj/VuNba30rXhl+/SHNWSBe7i3des0P58Ex9e1hXEzQesQWmMmHUE3KaIvZLHHrQ cTaH0S97fA6aCqYQaOLwasnYRD1Ih2bQPyIElvJxUINACWQMHm1lHa+YqJ3tz6MNtr+d 1iHik3tK/6bBEYZLoHit1mKZlj0DVS27JPe6M7zcd1Np9AVsUhoYP8Qq+YW87OOeHTVM yCNdMocMcVmA02qRqFqr90HB99CH68PuMZ1PRvbI8nmaZ8c2gEadLtoAHIrbzd8RwrLZ 0h8WsQ4TltNrxhOeaF22AJ+5+y+c0e56kiUV1hkv+r+a3mkP+QgdMUZ1j2FguLfGTD1C fFtQ== 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:dkim-signature :dkim-signature; bh=01lx53oXEjHB12EIpfEWhdf0NHxjveCZJS34ykm30Ss=; b=WfY8Wr2xnRbpw9/dpQ8IU2CGLGuBLaS/oRZsimZ4KfCgsbag1rt1JYhdyhfg2ECsMz GvrFgDdUWzKZzq1fmJwuJVr5nirmKRmiLUlMyyKK9wcw9H5co6qlzvDDn4K4Gw79ueEX 52ElNl/ck3TjgAFw875Bv1L3FUWWHCMy3XzF3bHJk8V070QSljspeLcW+ClGqarKjRQd tfScrXbHOa59RSxqmech2OzAH6xfw4F6YMuzk2UfNof4JKlBBGfIrq1w9Go/+v3+Z11r ++/cx/iepJ2R2LmWDulhQO10vM1V7IjwfaWmwPB+/4ZDp+7kaHIAq9BVftyi+vjlchBm uvyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ravnborg.org header.s=rsa1 header.b=ZOWvTCZn; dkim=neutral (no key) header.i=@ravnborg.org header.s=ed1 header.b=6kcuP4B7; 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 q10-20020a170902daca00b00168bedf2b1bsi5110562plx.598.2022.06.24.12.51.45; Fri, 24 Jun 2022 12:51:57 -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=pass header.i=@ravnborg.org header.s=rsa1 header.b=ZOWvTCZn; dkim=neutral (no key) header.i=@ravnborg.org header.s=ed1 header.b=6kcuP4B7; 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 S231438AbiFXTrm (ORCPT + 99 others); Fri, 24 Jun 2022 15:47:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231220AbiFXTrl (ORCPT ); Fri, 24 Jun 2022 15:47:41 -0400 Received: from mailrelay3-1.pub.mailoutpod1-cph3.one.com (mailrelay3-1.pub.mailoutpod1-cph3.one.com [46.30.210.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CE478269A for ; Fri, 24 Jun 2022 12:47:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ravnborg.org; s=rsa1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=01lx53oXEjHB12EIpfEWhdf0NHxjveCZJS34ykm30Ss=; b=ZOWvTCZnvi8P2pj6UVgRVCSqgVRpbvGXApGsVxgHQ5/qAXyrUoigp18XhbkdprQA6qk+BR8Hk9CDs Bi0mMt6j2BnCVI6XSwPnPZPfwj/fUnrs19UXvNsqdCHFJcUaTKSm2hiBGtIpa1gsYwFLPvKtkWIBO7 a+9MMP9yQ0cwPqET5UmWCieMyGBr3K+llVed06Jh3DvSR0UGJDSnO0bGbx7bQEQ5HDqZXtA7tWxJnK Vw5cj4j6pb3HmGEl2GzLCpjKtwut3xkS0FZQEp2tVbVivFHEqpABKHqX7MKJwzWUpU7Z5Md0CXOlQA 9MseJX9bys8oB/z6OaNKO+2bEqnPs2g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ravnborg.org; s=ed1; h=in-reply-to:content-type:mime-version:references:message-id:subject:cc:to: from:date:from; bh=01lx53oXEjHB12EIpfEWhdf0NHxjveCZJS34ykm30Ss=; b=6kcuP4B77m/2mVzBV51Mo1EuMCk9uDHHmhGlgk8oRrlw+w/fw7Gz6rrYEywGQEVr1b8HaKV3WukoA IIoppC6CQ== X-HalOne-Cookie: a9df624f025a3f5ae97c156b21ee154a40fcede6 X-HalOne-ID: 801ce267-f3f6-11ec-be7c-d0431ea8bb03 Received: from mailproxy2.cst.dirpod3-cph3.one.com (80-162-45-141-cable.dk.customer.tdc.net [80.162.45.141]) by mailrelay3.pub.mailoutpod1-cph3.one.com (Halon) with ESMTPSA id 801ce267-f3f6-11ec-be7c-d0431ea8bb03; Fri, 24 Jun 2022 19:47:38 +0000 (UTC) Date: Fri, 24 Jun 2022 21:47:36 +0200 From: Sam Ravnborg To: Stephen Kitt Cc: Laurent Pinchart , Kieran Bingham , David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH v2] drm: shmobile: Use backlight helper Message-ID: References: <20220616170821.1348169-1-steve@sk2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220616170821.1348169-1-steve@sk2.org> X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLACK autolearn=no 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 Thu, Jun 16, 2022 at 07:08:21PM +0200, Stephen Kitt wrote: > This started with work on the removal of backlight_properties' > deprecated fb_blank field, much of which can be taken care of by using > helper functions provided by backlight.h instead of directly accessing > fields in backlight_properties. This patch series doesn't involve > fb_blank, but it still seems useful to use helper functions where > appropriate. > > Instead of retrieving the backlight brightness in struct > backlight_properties manually, and then checking whether the backlight > should be on at all, use backlight_get_brightness() which does all > this and insulates this from future changes. > > Signed-off-by: Stephen Kitt > Cc: Laurent Pinchart > Cc: Kieran Bingham > Cc: David Airlie > Cc: Daniel Vetter > Cc: dri-devel@lists.freedesktop.org Thanks, added to drm-misc (drm-misc-next) Sam