Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2584680iof; Wed, 8 Jun 2022 08:00:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxECgSF+CRSPiRQl5kzC+O+TngIZIp/u5SRTPFmY9w4TvD14jnjbR5tr57Ky94J93UBDpjc X-Received: by 2002:a63:cd04:0:b0:3fa:1e2e:9720 with SMTP id i4-20020a63cd04000000b003fa1e2e9720mr29915706pgg.179.1654700436769; Wed, 08 Jun 2022 08:00:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654700436; cv=none; d=google.com; s=arc-20160816; b=swoK0DGPYTDuSwNEP14ZFkEYgleHHR5IADqqMIqIgf1JdLHWsHwtYdBRU6OtO8I2GX RMX3iquJnH1XiAEHul7YvgB3docDb+sSXmCC1vmrRGhkcR1DCfygZIZXABqkjSRLgj6C GCd86/SN6cPwZXMqQ/7AOcQVZBNML35WKo0weE1TxFETbND6HOXz+d0tK5e/Y5rgYe68 r8I2NLehc9qkOfrTsRmij4Gh3tYCwvNsLGLDdOE7zAH1zIktWhKV0lqjE701aCWEtwRf 1voBP8e6+rQmZW+GCnNycCE63jMBu7Tj4hEqs92bBWk0DLVwFQp/WamucSz4f+pHCMSV 9jMQ== 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; bh=mHZcc87752dCD5EakMLSwQMgSNKMbCnC16gyyFD++5I=; b=chq5yiEMC/oWNWvqui9UEte3HN2MsfItyTT7uLzD9u2f8B2QcVdA8ObOeCuxZkA7SA Jpi7Mr4iwIGzUPJjwUXWququ/0iweTrMS8L1GjcuHLG2z174F+Oj+sIkvXmVwajZ02pD h7s8Qgq/TONxaAe6/fHBJ3ZOrfH7JXL2WqyyWdx9Y+0oPVKzxkncZAZLoXlOImd8OcJ9 7AwFFZ+MmDHpcaAV8YpJ83ZOnKmnnKxgYf5xpOT+nzH5uyptF2Skq8u7snYbQf1jKQ5P xWqC7ZTDib2SPIgTJV8Dkufdb4HnMidzfDLImLjELt34w8bHmUdJu3cPtXK7lS1YKEga Czbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iRZ0wVla; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 26-20020a17090a195a00b001e07470b6c0si25703213pjh.149.2022.06.08.08.00.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 08:00:36 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iRZ0wVla; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BB41D223BE6; Wed, 8 Jun 2022 07:32:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241443AbiFHOcj (ORCPT + 99 others); Wed, 8 Jun 2022 10:32:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241427AbiFHOci (ORCPT ); Wed, 8 Jun 2022 10:32:38 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73C75222A52 for ; Wed, 8 Jun 2022 07:32:37 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id 67-20020a1c1946000000b00397382b44f4so11202577wmz.2 for ; Wed, 08 Jun 2022 07:32:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=mHZcc87752dCD5EakMLSwQMgSNKMbCnC16gyyFD++5I=; b=iRZ0wVla5u9zp0SUCSyUiAxjH9RAE3J3FBcCkxHdsTvZIAvAoIiTfT3tGOS1jmquHP Enoc55DWAOCNnBOHOmwCwtXBbjlfVIHI6d3yv8fr49HgEeyDerdVlFc0Z06gG6D9H2Zc ynOKMPLCV8XcC63V2GeH92kmwKS4cmctokNnA27r/B7x0K8MVdJDWThBTADofYW2KKUa TxgX4BUGEdEdWdUi38Bw7CeqWaY27VL6grEHQPI5VPySkrXILGpvdxV0CJQlRePRGivJ +nc2kRpn2YpwEzoG93IWD2tGyGJzfgXAni+5vvNxb3gXzfbLcKH6SCQSOXtZzcUMxV7T u7BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=mHZcc87752dCD5EakMLSwQMgSNKMbCnC16gyyFD++5I=; b=Ub4Uf5B16LA4FXfuFozyXoTZvUynnq9EjxzNR5W/E0H+eoN05A+6WVlIrco5W3U42q I9LG49vscnaDSTSxZ2v9iiAk+AYJOYYKUMA+/F8F/J+cnW7CJp0un3Ia0b6iWAOWljdf PcENVbT3HPlkEsfZQehq/odfi9D/rgTR1AlOwK/xtfL55c6QwGxB2qQ8LJ7XgBVR3IGK h597Yi1DzWvzQwFZWWpcAvpt+H7pzUYFEGGgsdvUT7h98FhQEc/U04f8xiJgFj5zRi0g vW2ILcu9RZ4kHvainQDL80PpaXb+X5wAxI3OvK8EmjbN/JyYcvgghFgdzaYxKd9S1sWb S+7Q== X-Gm-Message-State: AOAM532yGEll3ywLSwUSudQ85Ea+ZoSM8CiENm/zWUdWz44bqYNlgYKz W7jutD71QCKs4R9S2IsLBfSzwUEDIvyBhRWO X-Received: by 2002:a05:600c:3b2a:b0:397:3e63:3db8 with SMTP id m42-20020a05600c3b2a00b003973e633db8mr62698557wms.40.1654698755974; Wed, 08 Jun 2022 07:32:35 -0700 (PDT) Received: from maple.lan (cpc141216-aztw34-2-0-cust174.18-1.cable.virginm.net. [80.7.220.175]) by smtp.gmail.com with ESMTPSA id b12-20020a5d4b8c000000b0020feb9c44c2sm21540231wrt.20.2022.06.08.07.32.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 07:32:35 -0700 (PDT) Date: Wed, 8 Jun 2022 15:32:33 +0100 From: Daniel Thompson To: Stephen Kitt Cc: Lee Jones , Jingoo Han , Helge Deller , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] backlight: aat2870: Use backlight helper Message-ID: <20220608143233.l5pbopafqc4n6uwq@maple.lan> References: <20220607190925.1134737-1-steve@sk2.org> <20220607190925.1134737-2-steve@sk2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220607190925.1134737-2-steve@sk2.org> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Tue, Jun 07, 2022 at 09:09:22PM +0200, Stephen Kitt wrote: > 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: Lee Jones > Cc: Daniel Thompson > Cc: Jingoo Han > Cc: Helge Deller > Cc: dri-devel@lists.freedesktop.org > Cc: linux-fbdev@vger.kernel.org Reviewed-by: Daniel Thompson Daniel.