Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4224591rwl; Sat, 7 Jan 2023 13:40:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXtfv5PgZMqbcx5nJ4v/ZVXCjCbTP4Yl2l54h6ek18zIr4bkx2REaTJqBWrlx5Hv2rm6UEuJ X-Received: by 2002:a05:6a20:1392:b0:b1:a867:79ca with SMTP id w18-20020a056a20139200b000b1a86779camr88629708pzh.10.1673127617794; Sat, 07 Jan 2023 13:40:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673127617; cv=none; d=google.com; s=arc-20160816; b=zwupVLr9O8zY6nhxFMwMyrgtgUPOHBtX2bc8DHV+jbCU+y69B0AtEgtoYxAP5pMhFI 1Uk9HWpRgZTrDQTXuzSOh3AyWI1VI4tRfncthdf8/7Gb7sCL6I8xrdkn2dD28MQjm5fh LXYyFrSe/dYMEkrSno6FQ5LU/9DYuGCU41mi6wTvLJSBikFSbS9czlZS9i87LvQoINjb lUX3kwBTG21DexDe+l7wW6fBC4L8bV3aPsdP/RROTS1GCoBHhbqEUBm+6lFvhMZSuzNM KhkU2eA6HOtVNTaeRXtftTQ01jM0kBogFPBvONGfnCornyxIjfnt6YOkEx46CuqTWTvC hNyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=JmL5h/5f9ZKkHhV7ji7KKVGJQTUq0yPHfnhiMRhXed0=; b=NMDNkSRJ9MdkG8Km0NAO9gn1MQfWAalSYKT4Iqcgu5PaUEafslSJiW8HaJ9IM9kGIb Un076tQWFsYNjrj0N0HkgvPVB4KXyd+OmNvauyflY2q0X5PnzN/2Om/7VSC0f0bzyOcu ZKA62fqiT4WnyVVQIka1Dk/yx4H0tj1JuO6mwwtwODM8bMOyApv1/PogtwFWFeL1dH1j yjV3rL5Q33pUz6LBzEudStyPGhTo9m4uY+nR9G4R8KPzB7p3TuZV+WUHTrriJxqHUjgp qNZESl0dbeKBs3643NARVjEvfN3JqYRocowFAH6PVpkwGXeL/h9IQUMcO1JYHVr1TAyW ZGaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=IK5dGKTx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j186-20020a638bc3000000b004b259e4a5e8si257866pge.16.2023.01.07.13.40.09; Sat, 07 Jan 2023 13:40:17 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=IK5dGKTx; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232653AbjAGVCx (ORCPT + 53 others); Sat, 7 Jan 2023 16:02:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbjAGVCv (ORCPT ); Sat, 7 Jan 2023 16:02:51 -0500 Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C3E043D80; Sat, 7 Jan 2023 13:02:50 -0800 (PST) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-4b6255ce5baso65437427b3.11; Sat, 07 Jan 2023 13:02:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JmL5h/5f9ZKkHhV7ji7KKVGJQTUq0yPHfnhiMRhXed0=; b=IK5dGKTx88W2mfNkdSbqWACqkjubhVS9N14mCOb6xiNrTRTmnuplQafYC0im+wGspK eOYeaF0MULlk8xs1MhOKyABR+2n5mu7ywO33aNQ9VX4GMkdSdCVqflFNfkdkPvE907aV AbMRlhdfsnbXDXTGbNIAQfaGPRPsPMo8biAT31OQE9sPB82/31f0is5EfnCupoTz/Ke+ 5qPrTwyq0HpYK24udJ89pRlkE2Z5QaSlpexv9uCe2Y49IpPc0IVSTp5co8YZkKYLFYOl z+xqA+ASKB1ZQdTTr7sECFdnwcqnzJz4QBV2ycEBNoSYjk2aEYooKDaJopPZvE6w6Z6k Ar3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JmL5h/5f9ZKkHhV7ji7KKVGJQTUq0yPHfnhiMRhXed0=; b=O2Jt2D/UOX8udyJw4wmKiwmRJp1QZZDvWL8gSq+6byXI9i06Z5PMsbU6ZWUsdhkoVG MfGZwjwLJCITxyV+wd++Fwcr1rYoLAI23Rm2RfzCNY88alsjYN87pKjmJultoXVM4mnG Tiwve8thwK39D8yykpWbuYWE1juUcL8UsAss+frof2mdcZmJb/cJZWyJtEe8JBKU0Qry 2arFjIT8c6wBr1ZEX0O+ZsZ4N7umqG4oCN8OUEJAA0ZawLz1F2o1eOAMrzhDNlpMyG4L 9z7LoOTrBPvXmKafgXDYStxi6lv8gy/lmK9XmeoagdJL2DUxs/3mWcxf88uUFTkx06yd u9zw== X-Gm-Message-State: AFqh2kquv0h80YVRSWW24KesVvJ+CgiZooYNZ5yQ5Hfr405m5dN4uvxE Pn1IXU5hcIx/bWJtjQmrGVG88GFyRYO2DNpEyK0= X-Received: by 2002:a81:484f:0:b0:3ed:90d2:2ab8 with SMTP id v76-20020a81484f000000b003ed90d22ab8mr582273ywa.67.1673125369382; Sat, 07 Jan 2023 13:02:49 -0800 (PST) MIME-Version: 1.0 References: <20230107-sam-video-backlight-drop-fb_blank-v1-0-1bd9bafb351f@ravnborg.org> <20230107-sam-video-backlight-drop-fb_blank-v1-12-1bd9bafb351f@ravnborg.org> In-Reply-To: <20230107-sam-video-backlight-drop-fb_blank-v1-12-1bd9bafb351f@ravnborg.org> From: Miguel Ojeda Date: Sat, 7 Jan 2023 22:02:38 +0100 Message-ID: Subject: Re: [PATCH 12/15] auxdisplay: ht16k33: Introduce backlight_get_brightness() To: sam@ravnborg.org, Stephen Kitt Cc: Nicolas Ferre , Helge Deller , Alexandre Belloni , Claudiu Beznea , Antonino Daplas , Benjamin Herrenschmidt , Paul Mackerras , Greg Kroah-Hartman , Robin van der Gracht , Miguel Ojeda , Lee Jones , Daniel Thompson , Jingoo Han , linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-staging@lists.linux.dev, linuxppc-dev@lists.ozlabs.org, Geert Uytterhoeven Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 Sat, Jan 7, 2023 at 7:26 PM Sam Ravnborg via B4 Submission Endpoint wrote: > > Introduce backlight_get_brightness() to simplify logic > and avoid direct access to backlight properties. Note: Stephen sent this one too a while ago (with some more details in the commit message, which is always nice); and then he sent yesterday v2 [1] (to mention the functional change with `BL_CORE_SUSPENDED` [2]). Anyway, if it goes via drm-misc, feel free to have my: Acked-by: Miguel Ojeda Though it would be nice to have Robin test the change. Thanks! [1] https://lore.kernel.org/lkml/20230106143002.1434266-1-steve@sk2.org/ [2] https://lore.kernel.org/lkml/CANiq72kRhmT37H1FAGYGny83ONYXeqJuO8ZPbym0ajQOWKY4Kw@mail.gmail.com/ Cheers, Miguel