Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2587180iof; Wed, 8 Jun 2022 08:02:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwL94KZNHT7XIua8sUDVhL28LHwikAQoAGksVsKx2LyM/SHjHHEv/fsoT3UsrNcuG/7fUvc X-Received: by 2002:a17:90b:1a81:b0:1e8:866c:6f78 with SMTP id ng1-20020a17090b1a8100b001e8866c6f78mr16617374pjb.44.1654700565171; Wed, 08 Jun 2022 08:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654700565; cv=none; d=google.com; s=arc-20160816; b=0DThUhwhrOXYw/tyVZxWbFMcfEtvvhXiMexaCM6c1Nvi7Z2Wi04EZBAuK+3FpI/U2z 3DrerMzwutfPDkL0iOPbxFlyArpoqx8h2wvZqyeSsjiobNUpPZg+SenMyBSu8WUQTK21 NcyGciifl0v24sJgjMNSxe+n2JwslBG4ki6PLVS7VCsv6q4dTs/mYa/XbTvtZ3Y3z3A4 8Qu51UIYmrPhDc5d5d4rHbsyrRalJ9fsL2tO04P6kc6gantypIwmEPQ3WsycRSJVMxDP ZXZgVYElovd8uYZv5X/jwB9AemAo87KRyTe0ybbUQGN7l9hU1CooXYTixuh5TOYkja9o aMAQ== 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=smuYMl0mhH56tDeHdXWNQOJZvruGPXatNdGHlD7YYTs=; b=CNJFHZoqXxuLaxSezUdKWYmYmcuRTIaH7rWy+THdMEmlnPFwE4Lrh2DBfCQmVKPPWk nc0zS2fW4XzjnLMpl8ZrfhBExD4X3/NpEy6nU1RbXL4kuIEJt6yjGPoWnJgBroG285aG XoFE3PSWttSbdVki0xNzmtu2HaFQlAf5vaCOxGhutP9uUY0MoFXwAf9UqoFnMUhdDOGW GFkRwDd5siSKIu8rBcwyxn6YdKF8XX/RVPmlj1rhnPubPQMy3HsMDg94mbHYVGHRVfoC JaXLSn7l2yjwHZrrZ7bon2I0y89fLA+d03if0akxizUwIOP0RsS5RYwRauP5kzWKesAM K8RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="lh/wsibI"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y186-20020a6364c3000000b003fc5c9eed14si28917487pgb.650.2022.06.08.08.02.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 08:02:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="lh/wsibI"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 6BC573D9FA6; Wed, 8 Jun 2022 07:34:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241304AbiFHOeT (ORCPT + 99 others); Wed, 8 Jun 2022 10:34:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241254AbiFHOeS (ORCPT ); Wed, 8 Jun 2022 10:34:18 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 131E93D670D for ; Wed, 8 Jun 2022 07:34:17 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id p10so28625548wrg.12 for ; Wed, 08 Jun 2022 07:34:17 -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=smuYMl0mhH56tDeHdXWNQOJZvruGPXatNdGHlD7YYTs=; b=lh/wsibIUywoWWz5yLN1RVAdkgCCFrBp+/s6WpZdSKwBaZHa3wcoks5skuKZz30cfP nSZWTrzWnqLrVP1W2Wk7qG5pXrVup+/0Wwy1s6utotmkgIgACXZfPb+9Y79qoUfX+oJ9 ExKOMgNgf/jN6HJ6ywgE+i/QHy5irCgS3+L230B7vEM9DAXccGChvXIK5jIi7Z+x71Cc b0iNAVnZ9lvEzXnIlIjF1NlS2vyBb2eyTgxDgDrBW9qowNQ0Zwq9SSLVLFmfM2NmFXQo UOvufvy+J2IzDSJrbR/BjQxjf1cfYIk5QRwc+J6D2AYq1DnctbL2XqJq/7cEZA+q/GF6 73QA== 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=smuYMl0mhH56tDeHdXWNQOJZvruGPXatNdGHlD7YYTs=; b=3uaXcEH9s2i2Wl0Vigw+CyppEOF6c2iXA/uJ/3ucpohO3SqocZE6HS+pF2nVphU+JI JEE6r4zPXq5FCf8XB2RoI8KfA/keud26vdQuEVDxeaCQus0OR9syp5vlVVsBDGdN/GOV U1E0SScIM6toYMubKdA0jX75aSPTNrs80RGeN89qDhijBPP0qSjD8xMmMja/Lpv6DxEI 35V3RjiWhAhM62XUg9ndmEmnkP9zU/5YdZkRSmcYwIHT6t5qYhXLpDhIVOTATYu9t5Ih xddptFjzqmJb6p+RPA7sWBV4bj5q2PJ50Jv5SFsz2Srw8EChhHmQeLKUBG/8trdoJfXc TY6Q== X-Gm-Message-State: AOAM533TOklDZaLkB1+okb/5eLcG7fmpKA2GfDx2aZQWOC6uSLdObIv+ t5OyFqp/v1k6wXOhr79pv+K9Ew== X-Received: by 2002:adf:f390:0:b0:218:4de4:510c with SMTP id m16-20020adff390000000b002184de4510cmr10350628wro.475.1654698855460; Wed, 08 Jun 2022 07:34:15 -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 bp3-20020a5d5a83000000b0020cff559b1dsm21061219wrb.47.2022.06.08.07.34.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 07:34:14 -0700 (PDT) Date: Wed, 8 Jun 2022 15:34:12 +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 3/4] backlight: ipaq_micro: Use backlight helper Message-ID: <20220608143412.rbhk4ne7jwubzz6g@maple.lan> References: <20220607190925.1134737-1-steve@sk2.org> <20220607190925.1134737-4-steve@sk2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220607190925.1134737-4-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:24PM +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.